From: Amadeusz Sławiński Date: Fri, 29 Sep 2023 10:32:42 +0000 (+0200) Subject: ASoC: core: Print component name when printing log X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e80f238d2bc0c0f27dc52ac824ca80b938a43ace;p=linux.git ASoC: core: Print component name when printing log When printing log related to component it is useful to know, to which component it applies to. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński Link: https://lore.kernel.org/r/20230929103243.705433-1-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index cc442c52cdea9..33eb5e2bb8bc0 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1445,8 +1445,8 @@ static int soc_probe_component(struct snd_soc_card *card, if (component->card) { if (component->card != card) { dev_err(component->dev, - "Trying to bind component to card \"%s\" but is already bound to card \"%s\"\n", - card->name, component->card->name); + "Trying to bind component \"%s\" to card \"%s\" but is already bound to card \"%s\"\n", + component->name, card->name, component->card->name); return -ENODEV; } return 0;