Skip to content

Commit 6423ef6

Browse files
heicarstMartin Schwidefsky
authored andcommitted
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>
1 parent 2685df6 commit 6423ef6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/s390/cio/qdio_debug.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "qdio.h"
1212

1313
/* that gives us 15 characters in the text event views */
14-
#define QDIO_DBF_LEN 16
14+
#define QDIO_DBF_LEN 32
1515

1616
extern debug_info_t *qdio_dbf_setup;
1717
extern debug_info_t *qdio_dbf_error;

0 commit comments

Comments
 (0)