summaryrefslogtreecommitdiff
path: root/sound/usb/endpoint.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-11-23 09:53:13 +0100
committerTakashi Iwai <tiwai@suse.de>2020-11-23 15:12:17 +0100
commite93e890e16ef5a0605b7cdc52b3bde50d88d7207 (patch)
tree9976f3f894df6578842cecd0ba9d3afa1b140ef1 /sound/usb/endpoint.c
parent1803503fe963afe850b26769f5447f871b1c6f83 (diff)
ALSA: usb-audio: Improve some debug prints
There are a few rooms for improvements wrt the debug prints: - The EP debug print is shown only at starting, not at stopping - The EP debug print contains useless object addresses - Some helpers show the urb and the EP object addresses, too This patch addresses those shortcomings. Tested-by: Keith Milner <kamilner@superlative.org> Tested-by: Dylan Robinson <dylan_robinson@motu.com> Link: https://lore.kernel.org/r/20201123085347.19667-8-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/endpoint.c')
-rw-r--r--sound/usb/endpoint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
index cf00871fd278..8205a64a734e 100644
--- a/sound/usb/endpoint.c
+++ b/sound/usb/endpoint.c
@@ -367,8 +367,8 @@ static void queue_pending_output_urbs(struct snd_usb_endpoint *ep)
err = usb_submit_urb(ctx->urb, GFP_ATOMIC);
if (err < 0)
usb_audio_err(ep->chip,
- "Unable to submit urb #%d: %d (urb %p)\n",
- ctx->index, err, ctx->urb);
+ "Unable to submit urb #%d: %d at %s\n",
+ ctx->index, err, __func__);
else
set_bit(ctx->index, &ep->active_mask);
}
@@ -494,8 +494,8 @@ struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip,
alts->desc.bInterfaceNumber,
alts->desc.bAlternateSetting);
if (ep) {
- usb_audio_dbg(ep->chip, "Re-using EP %x in iface %d,%d @%p\n",
- ep_num, ep->iface, ep->altsetting, ep);
+ usb_audio_dbg(ep->chip, "Re-using EP %x in iface %d,%d\n",
+ ep_num, ep->iface, ep->altsetting);
goto __exit_unlock;
}