diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index b3fb92c7c1..02aeb8e7c4 100755 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -37,7 +37,7 @@ static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, /* Read the header too to avoid extra memcpy */ count = blk_dread(mmc_get_blk_desc(mmc), sector, image_size_sectors, (void *)(ulong)spl_image->load_addr); - debug("uboot: read %lu sectors from sector 0x%lx to address 0x%x\n", image_size_sectors, + debug("uboot: read %lu sectors from sector 0x%lx to address 0x%lx\n", (unsigned long) image_size_sectors, sector, spl_image->load_addr); if (count != image_size_sectors) @@ -104,7 +104,7 @@ skip_to_next: /* read image header to find the image size & load address */ count = blk_dread(mmc_get_blk_desc(mmc), sector, 1, header); - debug("hdr: read %lu sectors from sector 0x%lx to address 0x%x\n", count, sector, header); + debug("hdr: read %lu sectors from sector 0x%lx to address 0x%p\n", count, sector, header); if (count == 0) { ret = -EIO; goto end;