]> git.dujemihanovic.xyz Git - u-boot.git/commit
display_options: Split print_buffer() into two functions
authorSimon Glass <sjg@chromium.org>
Sat, 8 May 2021 13:00:05 +0000 (07:00 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 8 Jun 2021 15:39:09 +0000 (11:39 -0400)
commit0cceb99ac59b1d383488ea3ce6511ffc01da5332
tree67dc9eb75f3aa6a469eb4c57bfd432139a7958aa
parent735dd6ef89ebd3e05c1dfaef06aca61046503c63
display_options: Split print_buffer() into two functions

At present print_buffer() outputs a hex dump but it is not possible to
place this dump in a string. Refactor it into a top-level function which
does the printing and a utility function that dumps a line into a string.
This makes the code more generally useful.

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