[hipl-commit] [trunk] Rev 4456: hipd: set the default initial debug level to MEDIUM.

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

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 03/05/2010 at 18:01:01
Revision: 4456
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  hipd: set the default initial debug level to MEDIUM.

Modified:
  M  hipd/hipd.c

=== modified file 'hipd/hipd.c'
--- hipd/hipd.c 2010-05-03 14:46:01 +0000
+++ hipd/hipd.c 2010-05-03 15:00:11 +0000
@@ -174,7 +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, "  -d set the initial (pre-config) debug level to ALL 
(default is MEDIUM)\n");
     fprintf(stderr, "\n");
 }
 
@@ -832,6 +832,9 @@
      * disturb further base exchanges. Use -N flag to disable this. */
     sflags         |= HIPD_START_FLUSH_IPSEC;
 
+    /* set the initial verbosity level */
+    hip_set_logdebug(LOGDEBUG_MEDIUM);
+
     /* One should be able to check the hipd version and usage,
      * even without having root privileges.
      */

Other related posts:

  • » [hipl-commit] [trunk] Rev 4456: hipd: set the default initial debug level to MEDIUM. - Mircea Gherzan