All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 0/2] sparc: use snprintf() in show() methods
@ 2020-05-09  9:18 ` Chen Zhou
  0 siblings, 0 replies; 14+ messages in thread
From: Chen Zhou @ 2020-05-09  9:18 UTC (permalink / raw)
  To: davem; +Cc: sparclinux, linux-kernel, chenzhou10

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 (2):
  sparc: use snprintf() in show_pciobppath_attr() in pci.c
  sparc: use snprintf() in show_pciobppath_attr() in vio.c

 arch/sparc/kernel/pci.c | 2 +-
 arch/sparc/kernel/vio.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2020-05-13 22:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09  9:18 [PATCH -next 0/2] sparc: use snprintf() in show() methods Chen Zhou
2020-05-09  9:18 ` Chen Zhou
2020-05-09  9:18 ` [PATCH -next 1/2] sparc: use snprintf() in show_pciobppath_attr() in pci.c Chen Zhou
2020-05-09  9:18   ` Chen Zhou
2020-05-09  9:18 ` [PATCH -next 2/2] sparc: use snprintf() in show_pciobppath_attr() in vio.c Chen Zhou
2020-05-09  9:18   ` Chen Zhou
2020-05-09 11:40 ` [PATCH -next 0/2] sparc: use snprintf() in show() methods Joe Perches
2020-05-09 11:40   ` Joe Perches
2020-05-11  1:24   ` chenzhou
2020-05-11  1:24     ` chenzhou
2020-05-11  1:32     ` Joe Perches
2020-05-11  1:32       ` Joe Perches
2020-05-13 22:36 ` David Miller
2020-05-13 22:36   ` David Miller

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.