diff options
author | Asai Thambi S P <asamymuthupa@micron.com> | 2012-09-05 12:33:32 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-09-12 16:19:59 -0400 |
commit | b62868e50e65e59556b550f745dac9a9a51ff841 (patch) | |
tree | 44a78d9a7b4466c7c6d5d0116979372e78544d91 /drivers/block/mtip32xx | |
parent | d7c8b945480b3505708c47aad2bca20bd20de2bd (diff) |
mtip32xx: Proper reporting of write protect status on big-endian
Proper reporting of write protect status on big-endian
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Selvan Mani <smani@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/mtip32xx')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index cf557a457cc0..06bc273ba289 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
@@ -3218,8 +3218,8 @@ static int mtip_hw_init(struct driver_data *dd) | |||
3218 | "Unable to check write protect progress\n"); | 3218 | "Unable to check write protect progress\n"); |
3219 | else | 3219 | else |
3220 | dev_info(&dd->pdev->dev, | 3220 | dev_info(&dd->pdev->dev, |
3221 | "Write protect progress: %d%% (%d blocks)\n", | 3221 | "Write protect progress: %u%% (%u blocks)\n", |
3222 | attr242.cur, attr242.data); | 3222 | attr242.cur, le32_to_cpu(attr242.data)); |
3223 | return rv; | 3223 | return rv; |
3224 | 3224 | ||
3225 | out3: | 3225 | out3: |