git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aba74c
)
Do not include trailing whitespace in hexdump.
author
Ben Pfaff
<blp@nicira.com>
Thu, 16 May 2013 05:36:04 +0000
(22:36 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 16 May 2013 18:23:09 +0000
(11:23 -0700)
Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Tested-by: Simon Horman <horms@verge.net.au>
lib/dynamic-string.c
patch
|
blob
|
history
diff --git
a/lib/dynamic-string.c
b/lib/dynamic-string.c
index
b35fd0b
..
3cccb5c
100644
(file)
--- a/
lib/dynamic-string.c
+++ b/
lib/dynamic-string.c
@@
-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");