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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user