ofp-print: Fix compiler warning.
authorEthan Jackson <ethan@nicira.com>
Thu, 9 Feb 2012 09:39:49 +0000 (01:39 -0800)
committerEthan Jackson <ethan@nicira.com>
Thu, 9 Feb 2012 09:55:48 +0000 (01:55 -0800)
Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/ofp-print.c

index 30ecdbf876a7908ddd6fa1d94d6ea6fe4bf181d8..8df439de1af4124e4664e6dd48b74bb386c4be61 100644 (file)
@@ -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');