]> git.dujemihanovic.xyz Git - u-boot.git/commit
hexdump: Support any rowsize
authorSimon Glass <sjg@chromium.org>
Sat, 8 May 2021 13:00:03 +0000 (07:00 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 8 Jun 2021 15:39:09 +0000 (11:39 -0400)
commit5d6d2b88389a99c9e20618593e64a9dd74862c8a
treeec4b3d88f4d0f8b4a8b1060823a28ddb07ad72ea
parent19edf139e900ed61825b32bc7a261e5f6606b8b1
hexdump: Support any rowsize

At present print_hex_dump() only supports either 16- or 32-byte lines.
With U-Boot we want to support any line length up to a maximum of 64.
Update the function to support this, with 0 defaulting to 16, as with
print_buffer().

Signed-off-by: Simon Glass <sjg@chromium.org>
include/hexdump.h
lib/hexdump.c
test/print_ut.c