Skip to content

Commit

Permalink
mtip32xx: Proper reporting of write protect status on big-endian
Browse files Browse the repository at this point in the history
Proper reporting of write protect status on big-endian

Signed-off-by: Asai Thambi S P <[email protected]>
Signed-off-by: Selvan Mani <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
asaithambi authored and axboe committed Sep 12, 2012
1 parent d7c8b94 commit b62868e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b62868e

Please sign in to comment.