lib: Allow using display_buffer() in SPL
authorSimon Glass <sjg@chromium.org>
Mon, 21 Jan 2019 21:53:18 +0000 (14:53 -0700)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 1 Feb 2019 15:59:11 +0000 (16:59 +0100)
commitf60662de77282360b995e2de4798ab8763d762c5
treefa92041022d6e68eba57f76cdd7ec2c511d879a5
parente5b29d870b0a7711affe640aa506fda633f0ef59
lib: Allow using display_buffer() in SPL

At present this function uses printf() format strings that are not
supported in SPL, so the output just consists of %llx strings on 64-bit.
machines. Fix this by adding a special case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
lib/display_options.c