spl: fit: Print error message when FDT is not present
PATCH 1/1 spl: fit: Print error message when FDT is not present
When FDT is not present in the image user doesn't get any error what's wrong. Print error message if LIBCOMMON_SUPPORT is enabled.
Seris-cc: uboot
---
common/spl/spl_fit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
common/spl/spl_fit.c +6 -1
@@ -39,8 +39,13 @@ static int spl_fit_select_fdt(const void *fdt, int images, int *fdt_offsetp) node >=0 ; node = fdt_next_subnode(fdt, node)) { name =fdt_getprop (fdt, node,"description" , &len); -if (!name) +if (!name) { +#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT +printf ("%s: Missing FDT description in DTB\n" , + __func__); +#endif return -EINVAL ; + }if (board_fit_config_name_match (name))continue ;
Signature · 1 line
1.9.1
PATCH 1/1 spl: fit: Print error message when FDT is not present
Quoted 5 lines · Michal Simek
When FDT is not present in the image user doesn't get any error what's wrong. Print error message if
LIBCOMMON_SUPPORTis enabled.Signed-off-by Michal Simek <[email protected]>Seris-cc: uboot
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160506/bc4a3fa7/attachment.sig>
PATCH 1/1 spl: fit: Print error message when FDT is not present
In reply to Michal SimekQuoted 10 lines · Michal Simek
When FDT is not present in the image user doesn't get any error what's wrong. Print error message if
LIBCOMMON_SUPPORTis enabled.Signed-off-by Michal Simek <[email protected]>Seris-cc: uboot
---common/spl/spl_fit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Quoted 7 lines · Michal Simek
When FDT is not present in the image user doesn't get any error what's wrong. Print error message if
LIBCOMMON_SUPPORTis enabled.Signed-off-by Michal Simek <[email protected]>Seris-cc: uboot
Reviewed-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160523/52268362/attachment.sig>