summaryrefslogtreecommitdiff
path: root/util-linux/hexdump_xxd.c
diff options
context:
space:
mode:
authorDenys Vlasenko2023-05-26 14:46:29 +0200
committerDenys Vlasenko2023-05-26 14:46:29 +0200
commit283cba78f2c9ea8478ef58ba616197df31640353 (patch)
treef47301d8ad84ae37c04e2ea9cf5d5f26defa384f /util-linux/hexdump_xxd.c
parent34751d8bf921a2c07cf9a7ce9074756a3d936013 (diff)
downloadbusybox-283cba78f2c9ea8478ef58ba616197df31640353.zip
busybox-283cba78f2c9ea8478ef58ba616197df31640353.tar.gz
hexdump, xxd: shrink strings
function old new delta add_first 12 10 -2 .rodata 105321 105306 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-17) Total: -17 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/hexdump_xxd.c')
-rw-r--r--util-linux/hexdump_xxd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/hexdump_xxd.c b/util-linux/hexdump_xxd.c
index 9738a76..636cbfe 100644
--- a/util-linux/hexdump_xxd.c
+++ b/util-linux/hexdump_xxd.c
@@ -285,7 +285,7 @@ int xxd_main(int argc UNUSED_PARAM, char **argv)
// output is " 0xXX, 0xXX, 0xXX...", add leading space
bb_dump_add(dumper, "\" \"");
} else
- bb_dump_add(dumper, "\"%08.8_ax: \""); // "address: "
+ bb_dump_add(dumper, "\"%08_ax: \""); // "address: "
}
if (bytes < 1 || bytes >= cols) {