Skip to content

Commit

Permalink
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 Phil Elwell committed Oct 25, 2016
1 parent f2af003 commit 1c8b82b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/bcm/pisound.c
Original file line number Diff line number Diff line change
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 1c8b82b

Please sign in to comment.