1 From 84835c07b7cdf960db7cb9e8cf13363e2d8c99b0 Mon Sep 17 00:00:00 2001
2 From: Giedrius Trainavicius <giedrius@blokas.io>
3 Date: Tue, 25 Oct 2016 01:47:20 +0300
4 Subject: [PATCH] pisound: Fix a warning in DEBUG builds
6 Also change a macro that enables debug level printing from DEBUG to
9 sound/soc/bcm/pisound.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
12 --- a/sound/soc/bcm/pisound.c
13 +++ b/sound/soc/bcm/pisound.c
14 @@ -55,7 +55,7 @@ static void pisnd_midi_uninit(void);
16 #define PISOUND_LOG_PREFIX "pisound: "
20 # define printd(...) pr_alert(PISOUND_LOG_PREFIX __VA_ARGS__)
22 # define printd(...) do {} while (0)
23 @@ -119,7 +119,7 @@ static void pisnd_midi_recv_callback(voi
24 while ((n = pisnd_spi_recv(data, sizeof(data)))) {
25 int res = snd_rawmidi_receive(substream, data, n);
27 - printd("midi recv 0x%02x, res = %d\n", data, res);
28 + printd("midi recv %u bytes, res = %d\n", n, res);