Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/qdio: increase string buffer size

Avoid false positive warnings like this with gcc 7.1:

drivers/s390/cio/qdio_debug.h:63:4:
note: 'snprintf' output between 8 and 17 bytes into a destination of size 16
snprintf(debug_buffer, QDIO_DBF_LEN, text);

and simply increase the size of the string buffer.

Reviewed-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
6423ef69 2685df67

+1 -1
+1 -1
drivers/s390/cio/qdio_debug.h
··· 11 11 #include "qdio.h" 12 12 13 13 /* that gives us 15 characters in the text event views */ 14 - #define QDIO_DBF_LEN 16 14 + #define QDIO_DBF_LEN 32 15 15 16 16 extern debug_info_t *qdio_dbf_setup; 17 17 extern debug_info_t *qdio_dbf_error;