mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
pisound: Fix a warning in DEBUG builds
Also change a macro that enables debug level printing from DEBUG to PISOUND_DEBUG.
This commit is contained in:
committed by
Phil Elwell
parent
f2af003568
commit
1c8b82bcb7
@@ -55,7 +55,7 @@ static void pisnd_midi_uninit(void);
|
|||||||
|
|
||||||
#define PISOUND_LOG_PREFIX "pisound: "
|
#define PISOUND_LOG_PREFIX "pisound: "
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef PISOUND_DEBUG
|
||||||
# define printd(...) pr_alert(PISOUND_LOG_PREFIX __VA_ARGS__)
|
# define printd(...) pr_alert(PISOUND_LOG_PREFIX __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
# define printd(...) do {} while (0)
|
# define printd(...) do {} while (0)
|
||||||
@@ -119,7 +119,7 @@ static void pisnd_midi_recv_callback(void *substream)
|
|||||||
while ((n = pisnd_spi_recv(data, sizeof(data)))) {
|
while ((n = pisnd_spi_recv(data, sizeof(data)))) {
|
||||||
int res = snd_rawmidi_receive(substream, data, n);
|
int res = snd_rawmidi_receive(substream, data, n);
|
||||||
(void)res;
|
(void)res;
|
||||||
printd("midi recv 0x%02x, res = %d\n", data, res);
|
printd("midi recv %u bytes, res = %d\n", n, res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user