summaryrefslogtreecommitdiff
path: root/include/printf.h
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2017-12-20 10:12:06 +0100
committerchrome-bot <chrome-bot@chromium.org>2017-12-25 17:17:25 -0800
commit5e93965e944370748a9d114e6de44c8bfe09047e (patch)
tree22ec5ba6af2317a2c1936e1c81860399cb2e3fb8 /include/printf.h
parent809244140d31a24041344eefe8c82bb47240e9f0 (diff)
downloadchrome-ec-5e93965e944370748a9d114e6de44c8bfe09047e.tar.gz
printf: add %li format for compatibility
For compatibility/convenience, implement the '%li' printf format as a *32-bit* integer format, as it might be expected by non-EC code. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=b:70320279 TEST=run on Eve EVT with unspecified external binary and see its traces are correctly printed. Change-Id: Iac20e823c74aac4f659176416eebd804c321d47c
Diffstat (limited to 'include/printf.h')
-rw-r--r--include/printf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/printf.h b/include/printf.h
index 0a26ea0daa..96913bb601 100644
--- a/include/printf.h
+++ b/include/printf.h
@@ -44,6 +44,7 @@
* So "%.8h" prints 8 bytes of binary data
* - 'p' - pointer
* - 'd' - signed integer
+ * - 'i' - signed integer if CONFIG_PRINTF_LEGACY_LI_FORMAT is set (ignore l)
* - 'u' - unsigned integer
* - 'x' - unsigned integer, print as lower-case hexadecimal
* - 'X' - unsigned integer, print as upper-case hexadecimal