From 65b7b4410b4f65bb1bea6ccca8445bca2820b653 Mon Sep 17 00:00:00 2001 From: 0ctobot Date: Sun, 24 Mar 2019 20:10:41 -0400 Subject: [PATCH] techpack: audio: Increase wsa881x buffer size This silences the following compiler warning: ../techpack/audio/asoc/codecs/wsa881x.c:392:9: error: 'snprintf' size argument is too large; destination buffer has size 20, but size argument is 25 [-Werror,-Wfortify-source] len = snprintf(tmp_buf, 25, "0x%.3x: 0x%.2x\n", i, ^ Signed-off-by: Adam W. Willis Signed-off-by: Sorayukii --- techpack/audio/asoc/codecs/wsa881x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techpack/audio/asoc/codecs/wsa881x.c b/techpack/audio/asoc/codecs/wsa881x.c index cbf3b4fc1824..60d8172c66ef 100644 --- a/techpack/audio/asoc/codecs/wsa881x.c +++ b/techpack/audio/asoc/codecs/wsa881x.c @@ -111,7 +111,7 @@ struct wsa881x_priv { #define SWR_SLV_MAX_REG_ADDR 0x390 #define SWR_SLV_START_REG_ADDR 0x40 -#define SWR_SLV_MAX_BUF_LEN 20 +#define SWR_SLV_MAX_BUF_LEN 25 #define BYTES_PER_LINE 12 #define SWR_SLV_RD_BUF_LEN 8 #define SWR_SLV_WR_BUF_LEN 32