Skip to content
Snippets Groups Projects
Commit fe64fd42 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

mmc: fix compiler warnings


Commit d2bf29e3 caused a number of compiler warnings:

mmc.c: In function 'mmc_bwrite':
mmc.c:97: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
mmc.c:97: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'lbaint_t'
mmc.c: In function 'mmc_bread':
mmc.c:229: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
mmc.c:229: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'lbaint_t'

Fix these.

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
Cc: Lei Wen <leiwen@marvell.com>
parent 29ccd7c3
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ mmc_bwrite(int dev_num, ulong start, lbaint_t blkcnt, const void*src) ...@@ -93,7 +93,7 @@ mmc_bwrite(int dev_num, ulong start, lbaint_t blkcnt, const void*src)
blklen = mmc->write_bl_len; blklen = mmc->write_bl_len;
if ((start + blkcnt) > mmc->block_dev.lba) { if ((start + blkcnt) > mmc->block_dev.lba) {
printf("MMC: block number 0x%x exceeds max(0x%x)", printf("MMC: block number 0x%lx exceeds max(0x%lx)",
start + blkcnt, mmc->block_dev.lba); start + blkcnt, mmc->block_dev.lba);
return 0; return 0;
} }
...@@ -225,7 +225,7 @@ static ulong mmc_bread(int dev_num, ulong start, lbaint_t blkcnt, void *dst) ...@@ -225,7 +225,7 @@ static ulong mmc_bread(int dev_num, ulong start, lbaint_t blkcnt, void *dst)
return 0; return 0;
if ((start + blkcnt) > mmc->block_dev.lba) { if ((start + blkcnt) > mmc->block_dev.lba) {
printf("MMC: block number 0x%x exceeds max(0x%x)", printf("MMC: block number 0x%lx exceeds max(0x%lx)",
start + blkcnt, mmc->block_dev.lba); start + blkcnt, mmc->block_dev.lba);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment