diff options
author | 2020-05-09 17:18:49 +0800 | |
---|---|---|
committer | 2020-05-13 15:35:58 -0700 | |
commit | 117e2cb3eeee2940ba581d104951f6207cb46ce5 (patch) | |
tree | 73d8849b942454df345de2b5243ad644e6694093 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | sparc: use scnprintf() in show_pciobppath_attr() in pci.c (diff) | |
download | wireguard-linux-117e2cb3eeee2940ba581d104951f6207cb46ce5.tar.xz wireguard-linux-117e2cb3eeee2940ba581d104951f6207cb46ce5.zip |
sparc: use scnprintf() in show_pciobppath_attr() in vio.c
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: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions