From 9ccdb462dadb1ddb43b2d0755930f4109b4edca7 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Fri, 5 Sep 2014 21:00:47 +0200 Subject: [PATCH] might as well make the debugging code a bit pretty --- src/iface-windows.c | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/iface-windows.c b/src/iface-windows.c index 9fe4ffe..eb6c93c 100644 --- a/src/iface-windows.c +++ b/src/iface-windows.c @@ -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); + } } -- 2.39.5