[Olsr-dev] [PATCH v1 06/18] info: trival debug output fix

Ferry Huberts (spam-protected)
Sat Dec 10 18:25:16 CET 2016


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/info/olsrd_info.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/info/olsrd_info.c b/lib/info/olsrd_info.c
index 5917bf5..e8bed0d 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -761,7 +761,7 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
 
   if (rx_count < 0) {
 #ifndef NODEBUG
-    olsr_printf(1, "(%s) s < 0\n", name);
+    olsr_printf(1, "(%s) rx_count < 0\n", name);
 #endif /* NODEBUG */
     *req = '\0';
     drain_request(ipc_connection);
@@ -773,7 +773,7 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
 
   if (!rx_count) {
 #ifndef NODEBUG
-    olsr_printf(1, "(%s) s == 0\n", name);
+    olsr_printf(1, "(%s) rx_count == 0\n", name);
 #endif /* NODEBUG */
     *req = '\0';
     drain_request(ipc_connection);
@@ -785,7 +785,7 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
 
   if (rx_count >= (ssize_t) sizeof(req_buffer)) {
 #ifndef NODEBUG
-    olsr_printf(1, "(%s) s > %ld\n", name, (long int) sizeof(req_buffer));
+    olsr_printf(1, "(%s) rx_count > %ld\n", name, (long int) sizeof(req_buffer));
 #endif /* NODEBUG */
     req[sizeof(req_buffer) - 1] = '\0';
     drain_request(ipc_connection);
-- 
2.9.3




More information about the Olsr-dev mailing list