|
From: <mla...@us...> - 2007-12-26 09:18:11
|
Revision: 359
http://g15daemon.svn.sourceforge.net/g15daemon/?rev=359&view=rev
Author: mlampard
Date: 2007-12-26 01:18:11 -0800 (Wed, 26 Dec 2007)
Log Message:
-----------
print cmdline args in debug mode
Modified Paths:
--------------
trunk/g15daemon-wip/ChangeLog
trunk/g15daemon-wip/g15daemon/main.c
Modified: trunk/g15daemon-wip/ChangeLog
===================================================================
--- trunk/g15daemon-wip/ChangeLog 2007-12-26 09:08:00 UTC (rev 358)
+++ trunk/g15daemon-wip/ChangeLog 2007-12-26 09:18:11 UTC (rev 359)
@@ -119,3 +119,4 @@
- Add --lcdlevel cmdline option to allow setting default LCD brightness level
1.9.2->SVN:
- BugFix: The documentation for --switch was inverted. Fix.
+- Print list of commandline args when in debug mode
Modified: trunk/g15daemon-wip/g15daemon/main.c
===================================================================
--- trunk/g15daemon-wip/g15daemon/main.c 2007-12-26 09:08:00 UTC (rev 358)
+++ trunk/g15daemon-wip/g15daemon/main.c 2007-12-26 09:18:11 UTC (rev 359)
@@ -360,8 +360,13 @@
lcdlevel = atoi(argv[i+1]);
}
}
-
}
+ if(g15daemon_debug){
+ fprintf(stderr, "G15Daemon CMDLINE ARGS: ");
+ for(i=1;i<argc;i++)
+ fprintf(stderr, "%s ",argv[i]);
+ fprintf(stderr,"\n");
+ }
if(uf_return_running()>=0) {
g15daemon_log(LOG_ERR,"G15Daemon already running.. Exiting");
exit(0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|