aboutsummaryrefslogtreecommitdiffstats
path: root/drv_serdisplib.c
diff options
context:
space:
mode:
authorvolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-01-12 21:50:01 +0000
committervolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-01-12 21:50:01 +0000
commite21905131015cbc115b57bf32a09914a9b6041df (patch)
treead79216e2724145f0c32f8bec27cfaed5e635f73 /drv_serdisplib.c
parent9abd411a0ad35dbb3cddcdb88cf450492d378cd7 (diff)
downloadlcd4linux-e21905131015cbc115b57bf32a09914a9b6041df.tar.gz
additional verbose messages
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@955 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_serdisplib.c')
-rw-r--r--drv_serdisplib.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/drv_serdisplib.c b/drv_serdisplib.c
index 59cea0b..b04c48b 100644
--- a/drv_serdisplib.c
+++ b/drv_serdisplib.c
@@ -186,6 +186,15 @@ static int drv_SD_start(const char *section)
return -1;
}
+ /* print supported options by display */
+ info("%s: options supported by display %s:", Name, model);
+ serdisp_options_t optiondesc;
+ optiondesc.name = ""; /* start the iteration with assigning an empty string before the first call */
+ while (serdisp_nextoptiondescription(dd, &optiondesc)) {
+ info(" %s", optiondesc.name);
+ }
+
+
DROWS = serdisp_getheight(dd);
DCOLS = serdisp_getwidth(dd);
NUMCOLS = serdisp_getcolours(dd);
@@ -281,16 +290,21 @@ static void plugin_rotate(RESULT * result, RESULT * arg1)
int drv_SD_list(void)
{
serdisp_display_t displaydesc;
+ long version;
if (verbose_level > 0) {
- printf(" version %i.%i, supported displays:\n",
- SERDISP_VERSION_GET_MAJOR(SERDISP_VERSION_CODE), SERDISP_VERSION_GET_MINOR(SERDISP_VERSION_CODE));
+ version = serdisp_getversioncode();
+ printf(" linked version %i.%i (compiled with header %i.%i), supported displays:\n",
+ SERDISP_VERSION_GET_MAJOR(version), SERDISP_VERSION_GET_MINOR(version),
+ SERDISP_VERSION_MAJOR, SERDISP_VERSION_MINOR);
+
displaydesc.dispname = "";
printf(" display name alias names description\n");
printf(" --------------- -------------------- -----------------------------------\n");
while (serdisp_nextdisplaydescription(&displaydesc)) {
printf(" %-15s %-20s %-35s\n", displaydesc.dispname, displaydesc.aliasnames, displaydesc.description);
}
+
} else {
displaydesc.dispname = "";
while (serdisp_nextdisplaydescription(&displaydesc)) {