From: Lothar Waßmann Date: Mon, 8 Jan 2018 12:24:05 +0000 (+0100) Subject: karo: bootce: suppress mtdparts related error message when CMD_MTDPARTS is not set X-Git-Tag: KARO-TX6-2019-07-31~21 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=061e8774d10136f9291e743bbd923e73bda7e95e;ds=sidebyside karo: bootce: suppress mtdparts related error message when CMD_MTDPARTS is not set --- 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"); } }