Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda: intel-nhlt: remove use of __func__ in dev_dbg

The module and function information can be added with
'modprobe foo dyndbg=+pmf'

Suggested-by: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220616220559.136160-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Pierre-Louis Bossart and committed by
Takashi Iwai
6376ab02 33fa35db

+8 -9
+8 -9
sound/hda/intel-nhlt.c
··· 55 55 56 56 /* find max number of channels based on format_configuration */ 57 57 if (fmt_configs->fmt_count) { 58 - dev_dbg(dev, "%s: found %d format definitions\n", 59 - __func__, fmt_configs->fmt_count); 58 + dev_dbg(dev, "found %d format definitions\n", 59 + fmt_configs->fmt_count); 60 60 61 61 for (i = 0; i < fmt_configs->fmt_count; i++) { 62 62 struct wav_fmt_ext *fmt_ext; ··· 66 66 if (fmt_ext->fmt.channels > max_ch) 67 67 max_ch = fmt_ext->fmt.channels; 68 68 } 69 - dev_dbg(dev, "%s: max channels found %d\n", __func__, max_ch); 69 + dev_dbg(dev, "max channels found %d\n", max_ch); 70 70 } else { 71 - dev_dbg(dev, "%s: No format information found\n", __func__); 71 + dev_dbg(dev, "No format information found\n"); 72 72 } 73 73 74 74 if (cfg->device_config.config_type != NHLT_CONFIG_TYPE_MIC_ARRAY) { ··· 95 95 } 96 96 97 97 if (dmic_geo > 0) { 98 - dev_dbg(dev, "%s: Array with %d dmics\n", __func__, dmic_geo); 98 + dev_dbg(dev, "Array with %d dmics\n", dmic_geo); 99 99 } 100 100 if (max_ch > dmic_geo) { 101 - dev_dbg(dev, "%s: max channels %d exceed dmic number %d\n", 102 - __func__, max_ch, dmic_geo); 101 + dev_dbg(dev, "max channels %d exceed dmic number %d\n", 102 + max_ch, dmic_geo); 103 103 } 104 104 } 105 105 } 106 106 107 - dev_dbg(dev, "%s: dmic number %d max_ch %d\n", 108 - __func__, dmic_geo, max_ch); 107 + dev_dbg(dev, "dmic number %d max_ch %d\n", dmic_geo, max_ch); 109 108 110 109 return dmic_geo; 111 110 }