From: Sumera Priyadarsini <sylphrenadin@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: gregkh@linuxfoundation.org
Subject: [Outreachy][PATCH 0/3] staging: Replace snprintf() with scnprintf()
Date: Fri, 16 Oct 2020 00:41:42 +0530 [thread overview]
Message-ID: <cover.1602767114.git.sylphrenadin@gmail.com> (raw)
The show() methods in device attributes should return the number of
bytes printed into the buffer which is the return value of scnprintf().
snprintf() returns the potential number of bytes that could be written
which may be greater than the actual length to be written.
This patchset is a series of trivial changes across the staging
directory to replace snprintf with scnprintf in the relevant files.
Sumera Priyadarsini (3):
staging: fbtft: Replace snprintf() with scnprintf()
staging: fieldbus: Replace snprintf() with scnprintf()
staging: comedi: Replace snprintf() with scnprintf()
drivers/staging/comedi/comedi_fops.c | 8 ++++----
drivers/staging/fbtft/fbtft-sysfs.c | 2 +-
drivers/staging/fieldbus/dev_core.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
--
2.25.1
next reply other threads:[~2020-10-15 19:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-15 19:11 Sumera Priyadarsini [this message]
2020-10-15 19:14 ` [Outreachy][PATCH 1/3] staging: fbtft: Replace snprintf() with scnprintf() Sumera Priyadarsini
2020-10-15 19:16 ` [Outreachy][PATCH 2/3] staging: fieldbus: " Sumera Priyadarsini
2020-10-23 13:03 ` Sven Van Asbroeck
2020-10-23 13:39 ` Sumera Priyadarsini
2020-10-15 19:18 ` [Outreachy][PATCH 3/3] staging: comedi: " Sumera Priyadarsini
2020-10-16 9:14 ` Ian Abbott
2020-10-16 9:36 ` Sumera Priyadarsini
2020-10-18 19:51 ` [Outreachy kernel] " Deepak R Varma
2020-10-18 20:35 ` Helen Koike
2020-10-18 21:31 ` Julia Lawall
2020-10-15 19:21 ` [Outreachy kernel] [Outreachy][PATCH 0/3] staging: " Matthew Wilcox
2020-10-16 8:24 ` Greg KH
2020-10-16 8:44 ` Sumera Priyadarsini
2020-10-18 5:32 ` Deepak R Varma
2020-10-18 5:38 ` Greg KH
2020-10-19 6:02 ` Deepak R Varma
2020-10-19 6:09 ` Greg KH
2020-10-19 6:25 ` Deepak R Varma
2020-10-19 6:59 ` Greg KH
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=cover.1602767114.git.sylphrenadin@gmail.com \
--to=sylphrenadin@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.