[U-Boot] [PATCH 2/9] log: Add functions to convert IDs to/from names

Simon Glass sjg at chromium.org
Fri Jan 26 21:42:40 UTC 2018


On 28 December 2017 at 13:14, Simon Glass <sjg at chromium.org> wrote:
> 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: Simon Glass <sjg at chromium.org>
> ---
>
>  common/log.c  | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/log.h | 39 ++++++++++++++++++++++++++++++++--
>  2 files changed, 104 insertions(+), 2 deletions(-)
>

Applied to u-boot-dm.


More information about the U-Boot mailing list