Skip to content

staging: Replace snprintf() with scnprintf()

Sumera Priyadarsini outreachy 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging: fbtft: Replace snprintf() with scnprintf()drivers/staging/fbtft/fbtft-sysfs.c+1 -10 replies
2/3staging: fieldbus: Replace snprintf() with scnprintf()drivers/staging/fieldbus/dev_core.c+1 -12 replies
3/3staging: comedi: Replace snprintf() with scnprintf()drivers/staging/comedi/comedi_fops.c+4 -45 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Outreachy][PATCH 0/3] staging: Replace snprintf() with scnprintf()

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(-)
Signature · 1 line
2.25.1