From: Mike Looijmans Date: Thu, 20 Feb 2014 06:39:07 +0000 (+0100) Subject: spl_mmc.c: Display correct message when bitstream fails to load X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b23f99131e7de8c707b56def0a47c0246d392a0;p=thirdparty%2Fu-boot.git spl_mmc.c: Display correct message when bitstream fails to load When fpga.bin is missing it displayed this confusing message: reading fpga.bin spl: error reading image system.dtb, err - -1 Fix this in code by reporting CONFIG_SPL_FPGA_LOAD_ARGS_NAME. Signed-off-by: Michal Simek --- diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index a1703f0899c..35eedcc47e6 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -86,7 +86,7 @@ static int mmc_load_fpga_image_fat(struct mmc *mmc) if (err <= 0) { #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT printf("spl: error reading image %s, err - %d\n", - CONFIG_SPL_FAT_LOAD_ARGS_NAME, err); + CONFIG_SPL_FPGA_LOAD_ARGS_NAME, err); #endif return -1; }