From: Ben Pfaff Date: Tue, 11 Jun 2013 20:42:12 +0000 (-0700) Subject: ofproto-dpif: Fix format specifier. X-Git-Tag: v2.0~623 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=7ee9e8419667c7a35eeb56d63ee083e74b95b155;p=cascardo%2Fovs.git 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 --- 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,