summaryrefslogtreecommitdiffstats
path: root/ripd/rip_interface.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-11 12:57:27 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-11 12:57:27 -0700
commitc4b2cfd119dd6130b37b1cdaaa5f3d47d8aab442 (patch)
treeb535559b626c76d2607a0c003110e4327547b715 /ripd/rip_interface.c
parentebc04ce20a871c99dbb116a4fbada967dd750c43 (diff)
downloadquagga-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.
Diffstat (limited to 'ripd/rip_interface.c')
-rw-r--r--ripd/rip_interface.c20
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); */