diff options
author | Asaf Vertz <asaf.vertz@tandemg.com> | 2015-01-20 18:33:35 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-21 09:41:34 +0100 |
commit | fe821915020126cc70bab503216e6345066a8f9e (patch) | |
tree | 034bf1077f348e15af3edf51423d1ce0e746eefb /drivers/mmc/card | |
parent | 9cd0ef2b104836e7bb344a343654d91ae9e55cb0 (diff) | |
download | blackbird-op-linux-fe821915020126cc70bab503216e6345066a8f9e.tar.gz blackbird-op-linux-fe821915020126cc70bab503216e6345066a8f9e.zip |
mmc: block: fix format string warning
Fixed the following warning (reported by cppcheck):
[drivers/mmc/card/block.c:2149]: (warning) %d in format string (no. 1)
requires 'int' but the argument type is 'unsigned int'.
Signed-off-by: Asaf Vertz <asaf.vertz@tandemg.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r-- | drivers/mmc/card/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 4409d79ed650..8e1a60e0818d 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -2147,7 +2147,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, */ snprintf(md->disk->disk_name, sizeof(md->disk->disk_name), - "mmcblk%d%s", md->name_idx, subname ? subname : ""); + "mmcblk%u%s", md->name_idx, subname ? subname : ""); if (mmc_card_mmc(card)) blk_queue_logical_block_size(md->queue.queue, |