Commit 5aacc218 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Make error messages more verbose

Add a prefix and more information for error messages regarding the
connection-list in hda_codec.c.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 150b432f
...@@ -396,15 +396,18 @@ int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, ...@@ -396,15 +396,18 @@ int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
} }
for (n = prev_nid + 1; n <= val; n++) { for (n = prev_nid + 1; n <= val; n++) {
if (conns >= max_conns) { if (conns >= max_conns) {
snd_printk(KERN_ERR snd_printk(KERN_ERR "hda_codec: "
"Too many connections\n"); "Too many connections %d for NID 0x%x\n",
conns, nid);
return -EINVAL; return -EINVAL;
} }
conn_list[conns++] = n; conn_list[conns++] = n;
} }
} else { } else {
if (conns >= max_conns) { if (conns >= max_conns) {
snd_printk(KERN_ERR "Too many connections\n"); snd_printk(KERN_ERR "hda_codec: "
"Too many connections %d for NID 0x%x\n",
conns, nid);
return -EINVAL; return -EINVAL;
} }
conn_list[conns++] = val; conn_list[conns++] = val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment