spl_mmc: Fix debug message format warnings

This commit is contained in:
Alexandre Bard 2019-05-28 15:57:02 +02:00
parent 90afbadbbb
commit eda2a82ae7
1 changed files with 2 additions and 2 deletions

View File

@ -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;