All of lore.kernel.org
 help / color / mirror / Atom feed
* [Outreachy][PATCH 0/3] staging: Replace snprintf() with scnprintf()
@ 2020-10-15 19:11 Sumera Priyadarsini
  2020-10-15 19:14 ` [Outreachy][PATCH 1/3] staging: fbtft: " Sumera Priyadarsini
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Sumera Priyadarsini @ 2020-10-15 19:11 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

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



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-10-27  1:51 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-15 19:11 [Outreachy][PATCH 0/3] staging: Replace snprintf() with scnprintf() Sumera Priyadarsini
2020-10-15 19:14 ` [Outreachy][PATCH 1/3] staging: fbtft: " 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

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.