X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fodp-util.c;h=a80016209ca96d818846a9c8680edfb22db5d5a6;hb=3f262d7de1dea6b4f70db1c4ff2e79de89c74b0d;hp=21bc9a51644dd54d4bb5f0c84dd406d9bb5b912b;hpb=a14bc59fb8f27db193d74662dc9c5cb8237177ef;p=openvswitch diff --git a/lib/odp-util.c b/lib/odp-util.c index 21bc9a51..a8001620 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -111,8 +111,9 @@ format_odp_actions(struct ds *ds, const union odp_action *actions, void format_odp_flow_stats(struct ds *ds, const struct odp_flow_stats *s) { - ds_put_format(ds, "packets:%"PRIu64", bytes:%"PRIu64", used:", - s->n_packets, s->n_bytes); + ds_put_format(ds, "packets:%llu, bytes:%llu, used:", + (unsigned long long int) s->n_packets, + (unsigned long long int) s->n_bytes); if (s->used_sec) { long long int used = s->used_sec * 1000 + s->used_nsec / 1000000; ds_put_format(ds, "%.3fs", (time_msec() - used) / 1000.0);