Messages in this thread | | | Date | Mon, 26 Sep 2022 12:14:05 -0700 | Subject | Re: [PATCH 2/7] scsi: Convert snprintf() to scnprintf() | From | Bart Van Assche <> |
| |
On 9/26/22 11:40, Jules Irenge wrote: > Coccinnelle reports a warning > Warning: Use scnprintf or sprintf > Adding to that, there has been a slow migration from snprintf to scnprintf. > This LWN article explains the rationale for this change > https: //lwn.net/Articles/69419/ > Ie. snprintf() returns what *would* be the resulting length, > while scnprintf() returns the actual length.
Isn't using snprintf() or scnprintf() inside sysfs show callbacks considered deprecated?
Thanks,
Bart.
| |