mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-28 09:31:32 +00:00
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>
This commit is contained in:
parent
43381401d5
commit
c3a5459985
1 changed files with 2 additions and 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[] = {
|
static struct cmd_tbl log_sub[] = {
|
||||||
U_BOOT_CMD_MKENT(level, CONFIG_SYS_MAXARGS, 1, do_log_level, "", ""),
|
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, "", ""),
|
U_BOOT_CMD_MKENT(test, 2, 1, do_log_test, "", ""),
|
||||||
#endif
|
#endif
|
||||||
U_BOOT_CMD_MKENT(format, CONFIG_SYS_MAXARGS, 1, do_log_format, "", ""),
|
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
|
#ifdef CONFIG_SYS_LONGHELP
|
||||||
static char log_help_text[] =
|
static char log_help_text[] =
|
||||||
"level - get/set log level\n"
|
"level - get/set log level\n"
|
||||||
#ifdef CONFIG_LOG_TEST
|
#if CONFIG_IS_ENABLED(LOG_TEST)
|
||||||
"log test - run log tests\n"
|
"log test - run log tests\n"
|
||||||
#endif
|
#endif
|
||||||
"log format <fmt> - set log output format. <fmt> is a string where\n"
|
"log format <fmt> - set log output format. <fmt> is a string where\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue