All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: fix argument order for capacity change info print
@ 2021-02-26  7:16 Klaus Jensen
  0 siblings, 0 replies; only message in thread
From: Klaus Jensen @ 2021-02-26  7:16 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, linux-kernel, Klaus Jensen

From: Klaus Jensen <k.jensen@samsung.com>

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

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
---
 block/genhd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/genhd.c b/block/genhd.c
index 304f8dcc9a9b..de8ecc402f69 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -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
-- 
2.30.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-26  7:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26  7:16 [PATCH] block: fix argument order for capacity change info print Klaus Jensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.