2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-29 15:28:56 +00:00

Do not include trailing whitespace in hexdump.

Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Tested-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
Ben Pfaff
2013-05-15 22:36:04 -07:00
parent 9aba74cef5
commit aaa4b65b23

View File

@@ -394,6 +394,8 @@ ds_put_hex_dump(struct ds *ds, const void *buf_, size_t size,
for (; i < per_line; i++)
ds_put_format(ds, " ");
ds_put_format(ds, "|");
} else {
ds_chomp(ds, ' ');
}
ds_put_format(ds, "\n");