summary refs log tree commit diff
path: root/Documentation/mailbox.txt
diff options
context:
space:
mode:
authorChen Zhou <chenzhou10@huawei.com>2020-05-09 16:56:07 +0800
committerVasily Gorbik <gor@linux.ibm.com>2020-06-16 13:44:05 +0200
commit92fd356514b7505f40ca72b38ef84070e6502a70 (patch)
treef52f7a6f2291450c21334515075fa907720b9e8c /Documentation/mailbox.txt
parentdf8cea2a4bef3088c8570af543835992ce1d327e (diff)
downloadlinux-92fd356514b7505f40ca72b38ef84070e6502a70.tar.gz
s390: use scnprintf() in sys_##_prefix##_##_name##_show
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().

Link: https://lkml.kernel.org/r/20200509085608.41061-3-chenzhou10@huawei.com
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'Documentation/mailbox.txt')
0 files changed, 0 insertions, 0 deletions