diff options
author | Wolfgang Denk <wd@denx.de> | 2010-09-19 01:03:20 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-09-19 12:30:54 +0200 |
commit | fe64fd4238bcdeb0221decad58288ddaa9dcbdb7 (patch) | |
tree | 466cf2fc9ea113651a8ce93aa1ca84f926683d7f /drivers | |
parent | 29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6 (diff) |
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: Wolfgang Denk <wd@denx.de>
Cc: Lei Wen <leiwen@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 23928c1356e..80cd9bff9bb 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -93,7 +93,7 @@ mmc_bwrite(int dev_num, ulong start, lbaint_t blkcnt, const void*src) blklen = mmc->write_bl_len; 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); return 0; } @@ -225,7 +225,7 @@ static ulong mmc_bread(int dev_num, ulong start, lbaint_t blkcnt, void *dst) return 0; 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); return 0; } |