[hipl-commit] [trunk] Rev 4253: Move disabled hip_debug_print_dht_queue() before the places it is used.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 13 Apr 2010 14:23:31 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 13/04/2010 at 14:23:31
Revision: 4253
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Move disabled hip_debug_print_dht_queue() before the places it is used.

Modified:
  M  hipd/dhtqueue.c

=== modified file 'hipd/dhtqueue.c'
--- hipd/dhtqueue.c     2010-04-09 16:24:44 +0000
+++ hipd/dhtqueue.c     2010-04-13 11:23:10 +0000
@@ -21,6 +21,31 @@
 
 HIP_HASHTABLE *hip_dht_queue = NULL;
 
+
+#if 0
+/**
+ * hip_debug_print_queue
+ *
+ * This function prints all the dht queue members
+ *
+ * @ return void
+ */
+static void hip_debug_print_dht_queue(void)
+{
+    int i = 0;
+    hip_list_t *item, *tmp;
+    struct hip_queue *entry;
+
+    HIP_DEBUG("DEBUGGING QUEUE comment out if left uncommented\n");
+    HIP_DEBUG("Head count %d\n", dht_queue_count);
+    list_for_each_safe(item, tmp, hip_dht_queue, i) {
+        entry = list_entry(item);
+        HIP_DEBUG("Node data_len = %d\n", entry->data_len);
+        HIP_DEBUG("Node data= %s\n", entry->data);
+    }
+}
+#endif
+
 /**
  * hip_dht_queue_hash
  *
@@ -204,28 +229,3 @@
     }
     return 0;
 }
-
-#if 0
-/**
- * hip_debug_print_queue
- *
- * This function prints all the dht queue members
- *
- * @ return void
- */
-static void hip_debug_print_dht_queue(void)
-{
-    int i = 0;
-    hip_list_t *item, *tmp;
-    struct hip_queue *entry;
-
-    HIP_DEBUG("DEBUGGING QUEUE comment out if left uncommented\n");
-    HIP_DEBUG("Head count %d\n", dht_queue_count);
-    list_for_each_safe(item, tmp, hip_dht_queue, i) {
-        entry = list_entry(item);
-        HIP_DEBUG("Node data_len = %d\n", entry->data_len);
-        HIP_DEBUG("Node data= %s\n", entry->data);
-    }
-}
-
-#endif

Other related posts:

  • » [hipl-commit] [trunk] Rev 4253: Move disabled hip_debug_print_dht_queue() before the places it is used. - Diego Biurrun