mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
ALSA: usb-audio: Use standard print API
Use pr_*() instead of open-coded printk() for code simplicity. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20240807133452.9424-46-tiwai@suse.de
This commit is contained in:
parent
f8466d91f3
commit
df04b43fee
@ -224,10 +224,10 @@ static void snd_usbmidi_input_data(struct snd_usb_midi_in_endpoint *ep,
|
||||
#ifdef DUMP_PACKETS
|
||||
static void dump_urb(const char *type, const u8 *data, int length)
|
||||
{
|
||||
snd_printk(KERN_DEBUG "%s packet: [", type);
|
||||
pr_debug("%s packet: [", type);
|
||||
for (; length > 0; ++data, --length)
|
||||
printk(KERN_CONT " %02x", *data);
|
||||
printk(KERN_CONT " ]\n");
|
||||
pr_cont(" %02x", *data);
|
||||
pr_cont(" ]\n");
|
||||
}
|
||||
#else
|
||||
#define dump_urb(type, data, length) /* nothing */
|
||||
|
Loading…
Reference in New Issue
Block a user