diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 10:47:30 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-23 18:11:39 -0500 |
commit | 7f331941321d47ea4aa732b1174a57c273728cf5 (patch) | |
tree | 1ef0af8a93e0d8e359ba9e2920b878615ac7bac4 /common/event.c | |
parent | 057c567fb5075b39f5ac040c7259675f472c3304 (diff) |
lib: Support printing an error string
It is often useful to show an error code to give the user a clue as to
what went wrong. When error strings are compiled into U-Boot it is
possible to show a message as well.
But at present it is not very convenient, since code must check if the
error strings are present, then obtain the error string and use it in
a printf() string.
Add a %dE option which shows an error code along with an error string,
if available. This makes it easy to show one or both.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/event.c')
0 files changed, 0 insertions, 0 deletions