Skip to content

Commit

Permalink
FIXUP: pisound: Fix a warning in DEBUG builds
Browse files Browse the repository at this point in the history
Also change a macro that enables debug level printing from DEBUG to
PISOUND_DEBUG.
  • Loading branch information
gtrainavicius authored and popcornmix committed Dec 9, 2016
1 parent a36918e commit 432ec36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/bcm/pisound.c
Expand Up @@ -55,7 +55,7 @@ static void pisnd_midi_uninit(void);

#define PISOUND_LOG_PREFIX "pisound: "

#ifdef DEBUG
#ifdef PISOUND_DEBUG
# define printd(...) pr_alert(PISOUND_LOG_PREFIX __VA_ARGS__)
#else
# define printd(...) do {} while (0)
Expand Down Expand Up @@ -119,7 +119,7 @@ static void pisnd_midi_recv_callback(void *substream)
while ((n = pisnd_spi_recv(data, sizeof(data)))) {
int res = snd_rawmidi_receive(substream, data, n);
(void)res;
printd("midi recv 0x%02x, res = %d\n", data, res);
printd("midi recv %u bytes, res = %d\n", n, res);
}
}

Expand Down

0 comments on commit 432ec36

Please sign in to comment.