VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Ming Lei <ming.lei@redhat.com> 2021-02-23 16:50:15 +0800 committer: Jens Axboe <axboe@kernel.dk> 2021-02-23 19:28:51 -0700 commit: 452c0bf8754fbeffdf579465b82a3c2bbe373c95 parent: 97f433c3601a24d3513d06f575a389a2ca4e11e4
Commit Summary:
block: fix logging on capacity change
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/block/genhd.c b/block/genhd.c
index 6379b000576c..fcc530164b5a 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -74,7 +74,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