sparc: use scnprintf() in show_pciobppath_attr() in vio.c
Chen Zhou authored

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

show_pciobppath_attr() should return the number of bytes printed
into the buffer. This is the return value of scnprintf().
Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
117e2cb3
Name Last commit Last update
..
alpha mm/special: create generic fallbacks for pte_special() and pte_mkspecial()
arc arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h>
arm Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
arm64 Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
c6x mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS
csky mm/special: create generic fallbacks for pte_special() and pte_mkspecial()
h8300 h8300: ignore vmlinux.lds
hexagon arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h>
ia64 arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h>
m68k m68k: Drop redundant generic-y += hardirq.h
microblaze mm/special: create generic fallbacks for pte_special() and pte_mkspecial()
mips arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h>
nds32 arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h>
nios2 Merge tag 'nios2-v5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2
openrisc mm/special: create generic fallbacks for pte_special() and pte_mkspecial()
parisc mm/special: create generic fallbacks for pte_special() and pte_mkspecial()
powerpc Merge tag 'powerpc-5.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
riscv Merge tag 'riscv-for-linus-5.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
s390 Merge tag 'cve-2020-11884' from emailed bundle
sh Merge tag 'kbuild-fixes-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
sparc sparc: use scnprintf() in show_pciobppath_attr() in vio.c
um um: ensure `make ARCH=um mrproper` removes arch/$(SUBARCH)/include/generated/
unicore32 mm/special: create generic fallbacks for pte_special() and pte_mkspecial()
x86 Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
xtensa arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h>
.gitignore
Kconfig