projects
/
karo-tx-uboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f19d793
)
karo: bootce: suppress mtdparts related error message when CMD_MTDPARTS is not set
author
Lothar Waßmann
<LW@KARO-electronics.de>
Mon, 8 Jan 2018 12:24:05 +0000
(13:24 +0100)
committer
Lothar Waßmann
<LW@KARO-electronics.de>
Mon, 8 Jan 2018 12:24:05 +0000
(13:24 +0100)
common/cmd_bootce.c
patch
|
blob
|
history
diff --git
a/common/cmd_bootce.c
b/common/cmd_bootce.c
index
9ba4884
..
7103b7f
100644
(file)
--- 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 {
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");
}
}
}
}