X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofpbuf.c;h=30ae12e6d1118408c83931399c1fd030a17ce2e4;hb=34582733d9aad82bba60f4bf986b62d58412502a;hp=d578ab56a229b81537ce25b3bf0de369fb89c367;hpb=4d3daf048134e8c375fdadcec7e51d1dc28fe0b6;p=sliver-openvswitch.git diff --git a/lib/ofpbuf.c b/lib/ofpbuf.c index d578ab56a..30ae12e6d 100644 --- a/lib/ofpbuf.c +++ b/lib/ofpbuf.c @@ -553,7 +553,7 @@ ofpbuf_to_string(const struct ofpbuf *b, size_t maxbytes) struct ds s; ds_init(&s); - ds_put_format(&s, "size=%zu, allocated=%zu, head=%zu, tail=%zu\n", + ds_put_format(&s, "size=%"PRIuSIZE", allocated=%"PRIuSIZE", head=%"PRIuSIZE", tail=%"PRIuSIZE"\n", b->size, b->allocated, ofpbuf_headroom(b), ofpbuf_tailroom(b)); ds_put_hex_dump(&s, b->data, MIN(b->size, maxbytes), 0, false);