[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7cd26b15c9214e7c9b5c76ad67cebb9e@AcuMS.aculab.com>
Date: Fri, 14 Jul 2023 14:56:17 +0000
From: David Laight <David.Laight@...LAB.COM>
To: "'hanyu001@...suo.com'" <hanyu001@...suo.com>,
"jejb@...ux.ibm.com" <jejb@...ux.ibm.com>,
"martin.petersen@...cle.com" <martin.petersen@...cle.com>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>
Subject: RE: [PATCH] scsi: snic: Convert snprintf to scnprintf
From: hanyu001@...suo.com
> Sent: 12 July 2023 11:16
>
> Coccinelle reports a warning:
>
> drivers/scsi/snic/snic_attrs.c:35: WARNING: use scnprintf or sprintf
> drivers/scsi/snic/snic_attrs.c:48: WARNING: use scnprintf or sprintf
> drivers/scsi/snic/snic_attrs.c:26: WARNING: use scnprintf or sprintf:
The function you are looking for is (probably) sysfs_emit().
The PAGE_SIZE constant ought to be a good hint that neither
sprintf, snprintf or scnprintf is actually right.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Powered by blists - more mailing lists