aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorScott Anderson <saa@google.com>2011-10-13 12:13:44 -0700
committerMike J. Chen <mjchen@google.com>2012-03-03 17:29:10 -0800
commit0193ac54028533c2aee09547c9e63bca67a017b8 (patch)
tree0ec740048b998ce20bf5d893dd4d5a6b7d2bd885 /drivers/mmc
parent2d1cd2c4bff224e98b5019c2eb202c9bbe1dc26d (diff)
downloaduboot-0193ac54028533c2aee09547c9e63bca67a017b8.tar.gz
MMC: Fix a compiler warning and a comment typo
gcc was whining about a format string not matching the type of the argument. While fixing that, I noticed and fixed a typo in a nearby comment. Change-Id: I1998b0aa7718c5aed698ad830ef6085a767f4b18 Signed-off-by: Scott Anderson <saa@google.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 8bdb52f9b..b7221094d 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -319,11 +319,11 @@ mmc_berase(int dev_num, lbaint_t start, lbaint_t blkcnt)
next += blk_r;
}
- /* Erase contiguouos blocks that are erase_grp_size aligned */
+ /* Erase contiguous blocks that are erase_grp_size aligned */
blk_r = (blks_left / mmc->erase_grp_size) * mmc->erase_grp_size;
if (blk_r) {
err = mmc_erase_t(mmc, next, blk_r);
- printf("mmc_erase_t(), start %lu, blk_cnt %u, returned %d\n",
+ printf("mmc_erase_t(), start %lu, blk_cnt %lu, returned %d\n",
next, blk_r, err);
if (err)
goto exit;