Skip to content

s390: use scnprintf() in show() methods

Chen Zhou lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3s390/crypto: use scnprintf() instead of snprintf()arch/s390/crypto/prng.c+7 -70 replies
2/3s390: use scnprintf() in sys_##_prefix##_##_name##_showarch/s390/kernel/ipl.c+1 -10 replies
3/3s390/protvirt: use scnprintf() instead of snprintf()arch/s390/kernel/uv.c+4 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH -next 0/3] s390: use scnprintf() in show() methods

snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written.

show() methods should return the number of bytes printed into the buffer. This is the return value of scnprintf().

Chen Zhou (3):
s390/crypto: use scnprintf() instead of snprintf()
s390: use scnprintf() in sys_##_prefix##_##_name##_show s390/protvirt: use scnprintf() instead of snprintf()

 arch/s390/crypto/prng.c | 14 +++++++-------
 arch/s390/kernel/ipl.c  |  2 +-
 arch/s390/kernel/uv.c   |  8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)
Signature · 1 line
2.20.1