Commit 1fc766b5 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Christoph Hellwig
Browse files

nvme: add device name to warning in uuid_show()



This provides more context to users.

Old message:

[   00.000000] No UUID available providing old NGUID

New message:

[   00.000000] block nvme0n1: No UUID available providing old NGUID

Fixes: d934f984 ("nvme: provide UUID value to userspace")
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent b13baccc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3285,7 +3285,7 @@ static ssize_t uuid_show(struct device *dev, struct device_attribute *attr,
	 * we have no UUID set
	 */
	if (uuid_is_null(&ids->uuid)) {
		printk_ratelimited(KERN_WARNING
		dev_warn_ratelimited(dev,
			"No UUID available providing old NGUID\n");
		return sysfs_emit(buf, "%pU\n", ids->nguid);
	}