From 7ee9e8419667c7a35eeb56d63ee083e74b95b155 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 11 Jun 2013 13:42:12 -0700 Subject: [PATCH] ofproto-dpif: Fix format specifier. list_size() returns a size_t, not a uint64_t. Found by GCC. Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- ofproto/ofproto-dpif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 588d5c98f..46c426afd 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -8577,8 +8577,7 @@ ofproto_unixctl_dpif_dump_megaflows(struct unixctl_conn *conn, CLS_CURSOR_FOR_EACH (facet, cr, &cursor) { cls_rule_format(&facet->cr, &ds); ds_put_cstr(&ds, ", "); - ds_put_format(&ds, "n_subfacets:%"PRIu64", ", - list_size(&facet->subfacets)); + ds_put_format(&ds, "n_subfacets:%zu, ", list_size(&facet->subfacets)); ds_put_format(&ds, "used:%.3fs, ", (now - facet->used) / 1000.0); ds_put_cstr(&ds, "Datapath actions: "); format_odp_actions(&ds, facet->xout.odp_actions.data, -- 2.47.0