]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit6659ec11e112eaca912b864823fd1e6fb9a39ccc
treea1979f905e8656a52b95a1a791626b48926999cc
parentac36c2023832778a519028cddf5309ec697adcb5
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