Skip to contentSkip to conversation

block: fix argument order for capacity change info print

PATCH New Klaus Jensen 1 participant 1 message Feb 26, 2021 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: fix argument order for capacity change info print

From: Klaus Jensen <[email protected]>

Swap "before" and "after" capacities in the info print in set_capacity_and_notify.

---
 block/genhd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/genhd.c +1 -1
index 304f8dcc9a9b..de8ecc402f69 100644
@@ -73,7 +73,7 @@ bool set_capacity_and_notify(struct gendisk *disk, sector_t size)
 		return false;
 
 	pr_info("%s: detected capacity change from %lld to %lld\n",
-		disk->disk_name, size, capacity);
+		disk->disk_name, capacity, size);
 
 	/*
 	 * Historically we did not send a uevent for changes to/from an empty
Signature · 1 line
2.30.1