From: Asai Thambi S P Date: Wed, 5 Sep 2012 16:33:32 +0000 (+0530) Subject: mtip32xx: Proper reporting of write protect status on big-endian X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b62868e50e65e59556b550f745dac9a9a51ff841;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Selvan Mani Signed-off-by: Jens Axboe --- 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) "Unable to check write protect progress\n"); else dev_info(&dd->pdev->dev, - "Write protect progress: %d%% (%d blocks)\n", - attr242.cur, attr242.data); + "Write protect progress: %u%% (%u blocks)\n", + attr242.cur, le32_to_cpu(attr242.data)); return rv; out3: