From: Ethan Jackson Date: Thu, 9 Feb 2012 09:39:49 +0000 (-0800) Subject: ofp-print: Fix compiler warning. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;h=2953097759d3baaf22223b876d0028be8df78d3d;p=openvswitch ofp-print: Fix compiler warning. Signed-off-by: Ethan Jackson --- diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 30ecdbf8..8df439de 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -410,7 +410,7 @@ ofp_print_packet_out(struct ds *string, const struct ofp_packet_out *opo, ofp_print_actions(string, po.actions, po.n_actions); if (po.buffer_id == UINT32_MAX) { - ds_put_format(string, " data_len=%d", po.packet_len); + ds_put_format(string, " data_len=%zu", po.packet_len); if (verbosity > 0 && po.packet_len > 0) { char *packet = ofp_packet_to_string(po.packet, po.packet_len); ds_put_char(string, '\n');