From: Takashi Iwai Date: Thu, 16 Oct 2008 14:17:30 +0000 (+0200) Subject: ALSA: Print function symbol in the error messages X-Git-Tag: v2.6.29-rc1~590^2~9^2~25^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=76a4d10e522bfc238ddf70f35272088d420d2dcf;p=karo-tx-linux.git ALSA: Print function symbol in the error messages Use the new %pF for error messages in snd_device_*() functions to give more understandable results. Signed-off-by: Takashi Iwai --- diff --git a/sound/core/device.c b/sound/core/device.c index c58d8227254c..a67dfac08c03 100644 --- a/sound/core/device.c +++ b/sound/core/device.c @@ -98,7 +98,7 @@ int snd_device_free(struct snd_card *card, void *device_data) kfree(dev); return 0; } - snd_printd("device free %p (from %p), not found\n", device_data, + snd_printd("device free %p (from %pF), not found\n", device_data, __builtin_return_address(0)); return -ENXIO; } @@ -135,7 +135,7 @@ int snd_device_disconnect(struct snd_card *card, void *device_data) } return 0; } - snd_printd("device disconnect %p (from %p), not found\n", device_data, + snd_printd("device disconnect %p (from %pF), not found\n", device_data, __builtin_return_address(0)); return -ENXIO; }