commit | 02b8f1aeaf9ac2a6ac6c01f780a23527fcaaaead | [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 | 734f76f0836abb48d72fd7580293afc7c1c27a27 [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>