• S
    log: Add functions to convert IDs to/from names · f941c8d7
    Simon Glass 提交于
    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: NSimon Glass <sjg@chromium.org>
    (Updated to correct clang warnings)
    f941c8d7
log.c 6.7 KB