From 321de0d05a4bbe0ee74d473e00d7947851bf5284 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 21 Sep 2010 15:09:37 +0100 Subject: [PATCH] ASoC: Report error codes for card DAI instantiation failures Also clean up the error print a bit. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- sound/soc/soc-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index e9968ffecd1c..8751efdea119 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1566,7 +1566,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) for (i = 0; i < card->num_links; i++) { ret = soc_probe_dai_link(card, i); if (ret < 0) { - printk(KERN_ERR "asoc: failed to instanciate card %s\n", card->name); + pr_err("asoc: failed to instantiate card %s: %d\n", + card->name, ret); goto probe_dai_err; } } -- GitLab