Skip to content
Snippets Groups Projects
Commit f941c8d7 authored by Simon Glass's avatar Simon Glass
Browse files

log: Add functions to convert IDs to/from names


Category and level both use an enum for their ID values. Add functions to
convert these IDs to strings and vice versa. This will allow the log to
output the strings instead of the (inscrutable) values.

At the same time, add a new 'driver-model' category, to cover core
driver-model functions and fix an incorrect value for LOGL_MAX.

Tests will be added with the new 'log' subcommands.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
(Updated to correct clang warnings)
parent 6e43d1b1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment