diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2021-10-25 11:56:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-25 14:58:19 +0200 |
commit | 79140e22d245aa3d06e2991f397c187b3ab07df3 (patch) | |
tree | dc070a6e73a17fde4d98eb89fef5c13715be105c /crypto/cast5_generic.c | |
parent | s390/qeth: fix various format strings (diff) | |
download | linux-79140e22d245aa3d06e2991f397c187b3ab07df3.tar.xz linux-79140e22d245aa3d06e2991f397c187b3ab07df3.zip |
s390/qeth: add __printf format attribute to qeth_dbf_longtext
Allow the compiler to recognize and check format strings and parameters.
As reported with allmodconfig and W=1:
drivers/s390/net/qeth_core_main.c: In function ‘qeth_dbf_longtext’:
drivers/s390/net/qeth_core_main.c:6190:9: error: function ‘qeth_dbf_longtext’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
6190 | vsnprintf(dbf_txt_buf, sizeof(dbf_txt_buf), fmt, args);
| ^~~~~~~~~
Acked-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/cast5_generic.c')
0 files changed, 0 insertions, 0 deletions