Message ID | 20230621134921.904217-3-wintera@linux.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 1a079f3e95295c3534c89f008e5e961a386e25e9 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | s390/net: updates 2023-06-10 | expand |
diff --git a/drivers/s390/net/lcs.h b/drivers/s390/net/lcs.h index bd52caa3b11b..a2699b70b050 100644 --- a/drivers/s390/net/lcs.h +++ b/drivers/s390/net/lcs.h @@ -21,7 +21,7 @@ do { \ #define LCS_DBF_TEXT_(level,name,text...) \ do { \ if (debug_level_enabled(lcs_dbf_##name, level)) { \ - sprintf(debug_buffer, text); \ + scnprintf(debug_buffer, sizeof(debug_buffer), text); \ debug_text_event(lcs_dbf_##name, level, debug_buffer); \ } \ } while (0)