Skip to content

Commit 1c8b82b

Browse files
gtrainaviciusPhil Elwell
authored and
Phil Elwell
committed
pisound: Fix a warning in DEBUG builds
Also change a macro that enables debug level printing from DEBUG to PISOUND_DEBUG.
1 parent f2af003 commit 1c8b82b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/bcm/pisound.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void pisnd_midi_uninit(void);
5555

5656
#define PISOUND_LOG_PREFIX "pisound: "
5757

58-
#ifdef DEBUG
58+
#ifdef PISOUND_DEBUG
5959
# define printd(...) pr_alert(PISOUND_LOG_PREFIX __VA_ARGS__)
6060
#else
6161
# define printd(...) do {} while (0)
@@ -119,7 +119,7 @@ static void pisnd_midi_recv_callback(void *substream)
119119
while ((n = pisnd_spi_recv(data, sizeof(data)))) {
120120
int res = snd_rawmidi_receive(substream, data, n);
121121
(void)res;
122-
printd("midi recv 0x%02x, res = %d\n", data, res);
122+
printd("midi recv %u bytes, res = %d\n", n, res);
123123
}
124124
}
125125

0 commit comments

Comments
 (0)