Commit b62868e50e65e59556b550f745dac9a9a51ff841
Committed by
Jens Axboe
1 parent
d7c8b94548
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/block/mtip32xx/mtip32xx.c
... | ... | @@ -3218,8 +3218,8 @@ |
3218 | 3218 | "Unable to check write protect progress\n"); |
3219 | 3219 | else |
3220 | 3220 | dev_info(&dd->pdev->dev, |
3221 | - "Write protect progress: %d%% (%d blocks)\n", | |
3222 | - attr242.cur, attr242.data); | |
3221 | + "Write protect progress: %u%% (%u blocks)\n", | |
3222 | + attr242.cur, le32_to_cpu(attr242.data)); | |
3223 | 3223 | return rv; |
3224 | 3224 | |
3225 | 3225 | out3: |