mtip32xx: Proper reporting of write protect status on big-endian
authorAsai Thambi S P <asamymuthupa@micron.com>
Wed, 5 Sep 2012 16:33:32 +0000 (22:03 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Sep 2012 20:19:59 +0000 (22:19 +0200)
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>
drivers/block/mtip32xx/mtip32xx.c

index cf557a457cc03faf319f451b2f7a031e06929cc9..06bc273ba28981f245710519389f6e7ec9417b6b 100644 (file)
@@ -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: