diff options
author | Ben Pfaff <blp@nicira.com> | 2009-11-06 10:43:50 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2009-11-09 10:30:10 -0800 |
commit | 2886875a385df582354ac916431b278f2fe698e0 (patch) | |
tree | 7ba5e3d899fab2d271c2a4cfaeda3d98cfd44573 /utilities/ovs-dpctl.c | |
parent | cc56746aed6d53046b17b01756362e566734241c (diff) | |
download | openvswitch-2886875a385df582354ac916431b278f2fe698e0.tar.gz |
Fix incorrect printf format specifiers.
GCC reported these during a 64-bit build.
Diffstat (limited to 'utilities/ovs-dpctl.c')
-rw-r--r-- | utilities/ovs-dpctl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c index 886cdb3ac..0dd93351d 100644 --- a/utilities/ovs-dpctl.c +++ b/utilities/ovs-dpctl.c @@ -408,9 +408,11 @@ show_dpif(struct dpif *dpif) printf("\tports: cur:%"PRIu32", max:%"PRIu32"\n", stats.n_ports, stats.max_ports); printf("\tgroups: max:%"PRIu16"\n", stats.max_groups); - printf("\tlookups: frags:%"PRIu64", hit:%"PRIu64", missed:%"PRIu64", " - "lost:%"PRIu64"\n", - stats.n_frags, stats.n_hit, stats.n_missed, stats.n_lost); + printf("\tlookups: frags:%llu, hit:%llu, missed:%llu, lost:%llu\n", + (unsigned long long int) stats.n_frags, + (unsigned long long int) stats.n_hit, + (unsigned long long int) stats.n_missed, + (unsigned long long int) stats.n_lost); printf("\tqueues: max-miss:%"PRIu16", max-action:%"PRIu16"\n", stats.max_miss_queue, stats.max_action_queue); } |