diff options
author | Sean Anderson <seanga2@gmail.com> | 2020-10-27 19:55:23 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-30 10:55:26 -0400 |
commit | c3a5459985ae7bbb73626d3914dbda63554e777f (patch) | |
tree | dc04dace8d1825ba3310415072970b25eb1cf5b1 | |
parent | 43381401d541c2d3245e4f210f962494b1533914 (diff) | |
download | u-boot-c3a5459985ae7bbb73626d3914dbda63554e777f.zip u-boot-c3a5459985ae7bbb73626d3914dbda63554e777f.tar.gz u-boot-c3a5459985ae7bbb73626d3914dbda63554e777f.tar.bz2 |
log: Use CONFIG_IS_ENABLED() for LOG_TEST
Checkpatch complains about using #ifdef for CONFIG variables.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | cmd/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -105,7 +105,7 @@ static int do_log_rec(struct cmd_tbl *cmdtp, int flag, int argc, static struct cmd_tbl log_sub[] = { U_BOOT_CMD_MKENT(level, CONFIG_SYS_MAXARGS, 1, do_log_level, "", ""), -#ifdef CONFIG_LOG_TEST +#if CONFIG_IS_ENABLED(LOG_TEST) U_BOOT_CMD_MKENT(test, 2, 1, do_log_test, "", ""), #endif U_BOOT_CMD_MKENT(format, CONFIG_SYS_MAXARGS, 1, do_log_format, "", ""), @@ -133,7 +133,7 @@ static int do_log(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) #ifdef CONFIG_SYS_LONGHELP static char log_help_text[] = "level - get/set log level\n" -#ifdef CONFIG_LOG_TEST +#if CONFIG_IS_ENABLED(LOG_TEST) "log test - run log tests\n" #endif "log format <fmt> - set log output format. <fmt> is a string where\n" |