Skip to contentSkip to conversation

mtip32xx: Change disk capacity unit from MB to MiB

PATCH In review Asai Thambi S P 1 participant 1 message May 30, 2012 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 11/11 mtip32xx: Change disk capacity unit from MB to MiB

Disk capacity is calculated as power of 2, but displayed as MB. Change the unit to MiB.

---
 drivers/block/mtip32xx/mtip32xx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/block/mtip32xx/mtip32xx.c +1 -1
index 18daa04..411276d 100644
@@ -1759,7 +1759,7 @@ static void mtip_dump_identify(struct mtip_port *port)
 
 	if (mtip_hw_get_capacity(port->dd, &sectors))
 		dev_info(&port->dd->pdev->dev,
-			"Capacity: %llu sectors (%llu MB)\n",
+			"Capacity: %llu sectors (%llu MiB)\n",
 			 (u64)sectors,
 			 ((u64)sectors) * ATA_SECT_SIZE >> 20);
 
Signature · 1 line
1.7.1