summaryrefslogtreecommitdiff
path: root/ospfd
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-07-28 11:58:51 +0100
committerPaul Jakma <paul@quagga.net>2009-07-28 11:58:51 +0100
commit30d205909c5a81cc306b161c16abff0fd7f566a7 (patch)
tree6f7532a4336cf601bbeab07d2669639a05409dfd /ospfd
parentd023aec49f70156d2ed894a8fba65bcfa221ff02 (diff)
[global] interface flags format warnings
*/*: ifp->flags is 64 bit unsigned which can not be handled by %l on 32 bit architectures - requires %ll and the appropriate cast.
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_zebra.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 150ffac3..8f624a4d 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -91,8 +91,9 @@ ospf_interface_add (int command, struct zclient *zclient, zebra_size_t length)
ifp = zebra_interface_add_read (zclient->ibuf);
if (IS_DEBUG_OSPF (zebra, ZEBRA_INTERFACE))
- zlog_debug ("Zebra: interface add %s index %d flags %ld metric %d mtu %d",
- ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu);
+ zlog_debug ("Zebra: interface add %s index %d flags %llx metric %d mtu %d",
+ ifp->name, ifp->ifindex, (unsigned long long)ifp->flags,
+ ifp->metric, ifp->mtu);
assert (ifp->info);
@@ -132,7 +133,7 @@ ospf_interface_delete (int command, struct zclient *zclient,
if (IS_DEBUG_OSPF (zebra, ZEBRA_INTERFACE))
zlog_debug
- ("Zebra: interface delete %s index %d flags %ld metric %d mtu %d",
+ ("Zebra: interface delete %s index %d flags %lld metric %d mtu %d",
ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu);
#ifdef HAVE_SNMP