summaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-06-01 14:43:05 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2022-10-03 22:52:21 -0400
commitc9616927ef79266750c8f74d9614404dd6a8532a (patch)
treebd9a5cb625c6070128eaf0160ef0190e39005b31 /lib/string_helpers.c
parentd867c3cf616f88d5e53169b37b2e526edca605dd (diff)
lib/hexdump: Convert to printbuf
This converts most of the hexdump code to printbufs, along with some significant cleanups and a bit of reorganization. The old non-printbuf functions are mostly left as wrappers around the new printbuf versions. Big note: byte swabbing behaviour Previously, hex_dump_to_buffer() would byteswab the groups of bytes being printed on little endian machines. This behaviour is... not standard or typical for a hex dumper, and this behaviour was silently added/changed without documentation (in 2007). Given that the hex dumpers are just used for debugging output, nothing is likely to break, and hopefully by reverting to more standard behaviour the end result will be _less_ confusion, modulo a few kernel developers who will certainly be annoyed by their tools changing. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions