From 061e8774d10136f9291e743bbd923e73bda7e95e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Mon, 8 Jan 2018 13:24:05 +0100 Subject: [PATCH] karo: bootce: suppress mtdparts related error message when CMD_MTDPARTS is not set --- common/cmd_bootce.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/cmd_bootce.c b/common/cmd_bootce.c index 9ba4884e17..7103b7f898 100644 --- a/common/cmd_bootce.c +++ b/common/cmd_bootce.c @@ -141,7 +141,8 @@ static void ce_setup_std_drv_globals(ce_std_driver_globals *std_drv_glb) strncpy(std_drv_glb->mtdparts, mtdparts, max_len); std_drv_glb->mtdparts[max_len - 1] = '\0'; } else { - printf("Failed to get mtdparts environment variable\n"); + if (CONFIG_IS_ENABLED(CMD_MTDPARTS)) + printf("Failed to get mtdparts environment variable\n"); } } -- 2.39.2