brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0528-pisound-Fix-a-warning-in-DEBUG-builds.patch
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
5
6 Also change a macro that enables debug level printing from DEBUG to
7 PISOUND_DEBUG.
8 ---
9 sound/soc/bcm/pisound.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
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);
15
16 #define PISOUND_LOG_PREFIX "pisound: "
17
18 -#ifdef DEBUG
19 +#ifdef PISOUND_DEBUG
20 # define printd(...) pr_alert(PISOUND_LOG_PREFIX __VA_ARGS__)
21 #else
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);
26 (void)res;
27 - printd("midi recv 0x%02x, res = %d\n", data, res);
28 + printd("midi recv %u bytes, res = %d\n", n, res);
29 }
30 }
31