diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-11 12:57:27 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-11 12:57:27 -0700 |
commit | c4b2cfd119dd6130b37b1cdaaa5f3d47d8aab442 (patch) | |
tree | b535559b626c76d2607a0c003110e4327547b715 | |
parent | ebc04ce20a871c99dbb116a4fbada967dd750c43 (diff) | |
download | quagga-c4b2cfd119dd6130b37b1cdaaa5f3d47d8aab442.tar.bz2 quagga-c4b2cfd119dd6130b37b1cdaaa5f3d47d8aab442.tar.xz |
Fix format warnings from interface flags
Interface flags or 64 bit, and on 32 bit platform this needs to
converted to long long for printf. Print in hex because it is
easier to figure out the bits then.
-rw-r--r-- | ripd/rip_interface.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index 60602f94..69820b74 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -406,8 +406,9 @@ rip_interface_down (int command, struct zclient *zclient, zebra_size_t length) rip_if_down(ifp); if (IS_RIP_DEBUG_ZEBRA) - zlog_debug ("interface %s index %d flags %ld metric %d mtu %d is down", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + zlog_debug ("interface %s index %d flags %#llx metric %d mtu %d is down", + ifp->name, ifp->ifindex, + (unsigned long long) ifp->flags, ifp->metric, ifp->mtu); return 0; } @@ -426,8 +427,9 @@ rip_interface_up (int command, struct zclient *zclient, zebra_size_t length) return 0; if (IS_RIP_DEBUG_ZEBRA) - zlog_debug ("interface %s index %d flags %ld metric %d mtu %d is up", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + zlog_debug ("interface %s index %d flags %#llx metric %d mtu %d is up", + ifp->name, ifp->ifindex, (unsigned long long) ifp->flags, + ifp->metric, ifp->mtu); /* Check if this interface is RIP enabled or not.*/ rip_enable_apply (ifp); @@ -450,8 +452,9 @@ rip_interface_add (int command, struct zclient *zclient, zebra_size_t length) ifp = zebra_interface_add_read (zclient->ibuf); if (IS_RIP_DEBUG_ZEBRA) - zlog_debug ("interface add %s index %d flags %ld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + zlog_debug ("interface add %s index %d flags %#llx metric %d mtu %d", + ifp->name, ifp->ifindex, (unsigned long long) ifp->flags, + ifp->metric, ifp->mtu); /* Check if this interface is RIP enabled or not.*/ rip_enable_apply (ifp); @@ -489,8 +492,9 @@ rip_interface_delete (int command, struct zclient *zclient, rip_if_down(ifp); } - zlog_info("interface delete %s index %d flags %ld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + zlog_info("interface delete %s index %d flags %#llx metric %d mtu %d", + ifp->name, ifp->ifindex, (unsigned long long) ifp->flags, + ifp->metric, ifp->mtu); /* To support pseudo interface do not free interface structure. */ /* if_delete(ifp); */ |