]> git.baikalelectronics.ru Git - uboot.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)
commit363beab2e2e1de860419468d3aa0ac867db91e4b
treeec4b3d88f4d0f8b4a8b1060823a28ddb07ad72ea
parentf1f007d0aca93cb5f9a0ef4b47c02e832b1bcdae
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