From: Mark Brown Date: Mon, 6 Apr 2009 15:59:32 +0000 (+0100) Subject: ASoC: Display return code when failing to add a DAPM kcontrol X-Git-Tag: v2.6.33-rc3~4^2~198^2~113 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6553e192d48af88184029066c30c9464516ea0b7;p=~emulex%2Finfiniband.git ASoC: Display return code when failing to add a DAPM kcontrol Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 735903a7467..46485de9e6f 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -357,8 +357,9 @@ static int dapm_new_mixer(struct snd_soc_codec *codec, path->long_name); ret = snd_ctl_add(codec->card, path->kcontrol); if (ret < 0) { - printk(KERN_ERR "asoc: failed to add dapm kcontrol %s\n", - path->long_name); + printk(KERN_ERR "asoc: failed to add dapm kcontrol %s: %d\n", + path->long_name, + ret); kfree(path->long_name); path->long_name = NULL; return ret;