ALSA: hda - Print PCI device name at "spurious message" warnings
authorTakashi Iwai <tiwai@suse.de>
Wed, 17 Oct 2012 06:39:37 +0000 (08:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 Oct 2012 06:39:37 +0000 (08:39 +0200)
... to make it clear to see from which device it comes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c

index d327ffa5b753cb4779f38cd42acfe27ace0c23e6..b6ffdd8474c376797e4a47ecc7a4f8a8e21c11a6 100644 (file)
@@ -832,8 +832,9 @@ static void azx_update_rirb(struct azx *chip)
                        smp_wmb();
                        chip->rirb.cmds[addr]--;
                } else
-                       snd_printk(KERN_ERR SFX "spurious response %#x:%#x, "
+                       snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, "
                                   "last cmd=%#08x\n",
+                                  pci_name(chip->pci),
                                   res, res_ex,
                                   chip->last_cmd[addr]);
        }