]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: log: Split off log level parsing
authorSean Anderson <seanga2@gmail.com>
Tue, 27 Oct 2020 23:55:33 +0000 (19:55 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 30 Oct 2020 14:55:27 +0000 (10:55 -0400)
commitfed9c2fbc941660f3a6ea25013f6501d4cff8f86
treee109d3bd8db7185aa64e711717deb655e3e47608
parentf48b5b563488c1fb8d2bb4857df8fa06a7a00a52
cmd: log: Split off log level parsing

Move parsing of log level into its own function so it can be re-used. This
also adds support for using log level names instead of just the integer
equivalent.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/log.c