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:
Takashi Iwai 2024-08-07 15:34:35 +02:00
parent f8466d91f3
commit df04b43fee

View File

@ -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 */