]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spl_mmc.c: Display correct message when bitstream fails to load
authorMike Looijmans <mike.looijmans@topic.nl>
Thu, 20 Feb 2014 06:39:07 +0000 (07:39 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 20 Feb 2014 07:47:51 +0000 (08:47 +0100)
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 <michal.simek@xilinx.com>
common/spl/spl_mmc.c

index a1703f0899c68323d410b91551527fd64253f6f4..35eedcc47e68cc3f54b02f187051c8df38b8b3d9 100644 (file)
@@ -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;
        }