karo: bootce: suppress mtdparts related error message when CMD_MTDPARTS is not set
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 8 Jan 2018 12:24:05 +0000 (13:24 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 8 Jan 2018 12:24:05 +0000 (13:24 +0100)
common/cmd_bootce.c

index 9ba4884..7103b7f 100644 (file)
@@ -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");
        }
 }