log: Allow padding of the function name
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:33:00 +0000 (16:33 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:35 +0000 (10:27 -0600)
commit72fa1ad8d9fe58153ca72e3886b8d846299e8fff
treea1979f905e8656a52b95a1a791626b48926999cc
parent96f37b092fdbb604e43c313265995d72ff1a82fe
log: Allow padding of the function name

At present when function names are logged, the output is a little hard to
read since every function is a different length. Add a way to pad the
names so that the log messages line up vertically. This doesn't work if
the function name is very long, but it makes a big difference in most
cases.

Use 20 characters as a default since this covers the vast majority of
functions.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/Kconfig
common/log_console.c
test/log/log_test.c