Put debug output from last commit into OLSR_PRINTF() command.
authorHenning Rogge <hrogge@googlemail.com>
Tue, 18 May 2010 13:57:27 +0000 (15:57 +0200)
committerHenning Rogge <hrogge@googlemail.com>
Tue, 18 May 2010 13:57:27 +0000 (15:57 +0200)
src/linux/kernel_routes_nl.c

index 805ba4a..d6b1ef6 100644 (file)
@@ -183,7 +183,7 @@ static void rtnetlink_read(int sock, void *data __attribute__ ((unused)), unsign
       return;
     }
 
-    fprintf(stderr, "Netlink message: %x\n", nlh->nlmsg_type);
+    OLSR_PRINTF(3, "Netlink message received: type %x\n", nlh->nlmsg_type);
     if ((nlh->nlmsg_type == RTM_NEWLINK) || ( nlh->nlmsg_type == RTM_DELLINK)) {
       /* handle ifup/ifdown */
       netlink_process_link(nlh);