[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yp94yTFrrkbBYqsj@kbusch-mbp.dhcp.thefacebook.com>
Date: Tue, 7 Jun 2022 10:11:53 -0600
From: Keith Busch <kbusch@...nel.org>
To: Thomas Weißschuh <linux@...ssschuh.net>
Cc: Jens Axboe <axboe@...com>, Christoph Hellwig <hch@....de>,
Sagi Grimberg <sagi@...mberg.me>,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nvme: add device name to warning in uuid_show()
On Tue, Jun 07, 2022 at 05:55:55PM +0200, Thomas Weißschuh wrote:
> if (uuid_is_null(&ids->uuid)) {
> - printk_ratelimited(KERN_WARNING
> - "No UUID available providing old NGUID\n");
> + dev_warn_ratelimited(dev, "No UUID available providing old NGUID\n");
> return sysfs_emit(buf, "%pU\n", ids->nguid);
The line split was correct to prevent this overly long line. But otherwise,
this looks good, though I'm wondering why this needs to be printed every time
someone reads the attribute.
Powered by blists - more mailing lists