From: Bart Van Assche <bvanassche@acm.org>
To: Jules Irenge <jbi.octave@gmail.com>, jejb@linux.ibm.com
Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/7] scsi: Convert snprintf() to scnprintf()
Date: Mon, 26 Sep 2022 12:14:05 -0700 [thread overview]
Message-ID: <ea00dcab-e4f6-f672-e754-9ddec67da83d@acm.org> (raw)
In-Reply-To: <YzHyC191CIXZSfc5@fedora>
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.
prev parent reply other threads:[~2022-09-26 19:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 18:40 [PATCH 2/7] scsi: Convert snprintf() to scnprintf() Jules Irenge
2022-09-26 19:14 ` Bart Van Assche [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea00dcab-e4f6-f672-e754-9ddec67da83d@acm.org \
--to=bvanassche@acm.org \
--cc=jbi.octave@gmail.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox