]> git.meshlink.io Git - catta/commitdiff
might as well make the debugging code a bit pretty
authorSven M. Hallberg <pesco@khjk.org>
Fri, 5 Sep 2014 19:00:47 +0000 (21:00 +0200)
committerSven M. Hallberg <pesco@khjk.org>
Fri, 5 Sep 2014 19:00:47 +0000 (21:00 +0200)
src/iface-windows.c

index 9fe4ffeb66f1d66f01f48081eee1ba7765536daf..eb6c93cecc536a91c6a43824b837bf621377fd3e 100644 (file)
@@ -116,18 +116,27 @@ static void ip_adapter_address(CattaInterfaceMonitor *m, IP_ADAPTER_ADDRESSES *p
     // XXX process addresses
 
     // XXX debugging, remove
-   { 
-     char mac[256]; 
-     catta_log_debug("======\n name: %s\n index:%d\n mtu:%d\n mac:%s\n type:%u\n status:%u\n multicast:%d\n flags:0x%.4x\n flags_ok:%d\n======",  
-                   hw->name, hw->index,  
-                   hw->mtu,  
-                   catta_format_mac_address(mac, sizeof(mac), hw->mac_address, hw->mac_address_size), 
-                   (unsigned int)p->IfType,
-                   (unsigned int)p->OperStatus,
-                   !(p->Flags & IP_ADAPTER_NO_MULTICAST),
-                   (unsigned int)p->Flags,
-            hw->flags_ok); 
-   } 
+    {
+        char mac[256];
+        catta_log_debug(" name: %s\n"
+                        " index: %d\n"
+                        " mtu: %d\n"
+                        " mac: %s\n"
+                        " flags_ok: %d\n"
+                        "   type: %u\n"
+                        "   status: %u\n"
+                        "   multicast: %d\n"
+                        "   flags: 0x%.4x\n"
+                        "======",
+            hw->name, hw->index,
+            hw->mtu,
+            catta_format_mac_address(mac, sizeof(mac), hw->mac_address, hw->mac_address_size),
+            hw->flags_ok,
+            (unsigned int)p->IfType,
+            (unsigned int)p->OperStatus,
+            !(p->Flags & IP_ADAPTER_NO_MULTICAST),
+            (unsigned int)p->Flags);
+    }
 }