commit | 0cceb99ac59b1d383488ea3ce6511ffc01da5332 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat May 08 07:00:05 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Tue Jun 08 11:39:09 2021 -0400 |
tree | 67dc9eb75f3aa6a469eb4c57bfd432139a7958aa | |
parent | 735dd6ef89ebd3e05c1dfaef06aca61046503c63 [diff] |
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>