X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fdp-packet.c;h=db3c857aebf64f4854fe767321e279e4ad7faf6f;hb=ca7e7bee86b4ee821d61b58bf15c89a9d8a3cb30;hp=1d166e15cf6c8f059fe2628db3899df1c9623634;hpb=e496a484cf53f29f3bf663d2d18a4cd22ea761ea;p=cascardo%2Fovs.git diff --git a/lib/dp-packet.c b/lib/dp-packet.c index 1d166e15c..db3c857ae 100644 --- a/lib/dp-packet.c +++ b/lib/dp-packet.c @@ -431,21 +431,6 @@ dp_packet_steal_data(struct dp_packet *b) return p; } -/* Returns a string that describes some of 'b''s metadata plus a hex dump of up - * to 'maxbytes' from the start of the buffer. */ -char * -dp_packet_to_string(const struct dp_packet *b, size_t maxbytes) -{ - struct ds s; - - ds_init(&s); - ds_put_format(&s, "size=%"PRIu32", allocated=%"PRIu32", head=%"PRIuSIZE", tail=%"PRIuSIZE"\n", - dp_packet_size(b), dp_packet_get_allocated(b), - dp_packet_headroom(b), dp_packet_tailroom(b)); - ds_put_hex_dump(&s, dp_packet_data(b), MIN(dp_packet_size(b), maxbytes), 0, false); - return ds_cstr(&s); -} - static inline void dp_packet_adjust_layer_offset(uint16_t *offset, int increment) {