s390/qeth: Convert sprintf/snprintf to scnprintf
authorThorsten Winkler <twinkler@linux.ibm.com>
Thu, 9 Feb 2023 11:04:24 +0000 (12:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Feb 2023 03:49:53 +0000 (19:49 -0800)
commit74c05a3828fda5133abcad60086f400de955d55c
tree30e3882d397876be85e8b644abf2c1924be1e8b3
parentdde8769b12110b7f636053bb70febfe25a9502c0
s390/qeth: Convert sprintf/snprintf to scnprintf

This LWN article explains the rationale for this change
https: //lwn.net/Articles/69419/
Ie. snprintf() returns what *would* be the resulting length,
while scnprintf() returns the actual length.

Reported-by: Jules Irenge <jbi.octave@gmail.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Thorsten Winkler <twinkler@linux.ibm.com>
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_ethtool.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c
drivers/s390/net/qeth_l3_sys.c