[hipl-commit] [trunk] Rev 4455: hipd: add a -d command line switch (debug level ALL).

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 3 May 2010 17:47:23 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 03/05/2010 at 17:47:23
Revision: 4455
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  hipd: add a -d command line switch (debug level ALL).
  
  This is the _INITIAL_ debug level, to be overriden by the
  value in the cofig file (if any).

Modified:
  M  hipd/hipd.c

=== modified file 'hipd/hipd.c'
--- hipd/hipd.c 2010-05-03 14:00:58 +0000
+++ hipd/hipd.c 2010-05-03 14:46:01 +0000
@@ -174,6 +174,7 @@
     fprintf(stderr, "  -N do not flush ipsec rules on exit\n");
     fprintf(stderr, "  -a fix alignment issues automatically(ARM)\n");
     fprintf(stderr, "  -f set debug type format to short\n");
+    fprintf(stderr, "  -d set initial (pre-config) debug level to ALL\n");
     fprintf(stderr, "\n");
 }
 
@@ -380,6 +381,9 @@
             HIP_INFO("Setting output format to short\n");
             hip_set_logfmt(LOGFMT_SHORT);
             break;
+        case 'd':
+            hip_set_logdebug(LOGDEBUG_ALL);
+            break;
         case 'V':
             hip_print_version("hipd");
         case '?':

Other related posts:

  • » [hipl-commit] [trunk] Rev 4455: hipd: add a -d command line switch (debug level ALL). - Mircea Gherzan