Skip to contentSkip to conversation

mtip32xx: Proper reporting of write protect status on big-endian

PATCH Applied Asai Thambi S P 1 participant 1 message Sep 5, 2012 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 mtip32xx: Proper reporting of write protect status on big-endian

Proper reporting of write protect status on big-endian

---
 drivers/block/mtip32xx/mtip32xx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/block/mtip32xx/mtip32xx.c +2 -2
index cf557a4..06bc273 100644
@@ -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:
Signature · 1 line
1.7.1