OSDN Git Service

ASoC: SOF: ipc3-loader: remove use of __func__ in dev_dbg
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 16 Jun 2022 21:53:45 +0000 (16:53 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jun 2022 09:46:42 +0000 (10:46 +0100)
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/20220616215351.135643-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc3-loader.c

index f3c741b..c573e75 100644 (file)
@@ -75,13 +75,12 @@ static int ipc3_fw_ext_man_get_config_data(struct snd_sof_dev *sdev,
        elems_size = config->hdr.size - sizeof(struct sof_ext_man_elem_header);
        elems_counter = elems_size / sizeof(struct sof_config_elem);
 
-       dev_dbg(sdev->dev, "%s can hold up to %d config elements\n",
-               __func__, elems_counter);
+       dev_dbg(sdev->dev, "manifest can hold up to %d config elements\n", elems_counter);
 
        for (i = 0; i < elems_counter; ++i) {
                elem = &config->elems[i];
-               dev_dbg(sdev->dev, "%s get index %d token %d val %d\n",
-                       __func__, i, elem->token, elem->value);
+               dev_dbg(sdev->dev, "get index %d token %d val %d\n",
+                       i, elem->token, elem->value);
                switch (elem->token) {
                case SOF_EXT_MAN_CONFIG_EMPTY:
                        /* unused memory space is zero filled - mapped to EMPTY elements */
@@ -323,10 +322,10 @@ static int sof_ipc3_load_fw_to_dsp(struct snd_sof_dev *sdev)
        header = (struct snd_sof_fw_header *)(fw->data + plat_data->fw_offset);
        load_module = sof_ops(sdev)->load_module;
        if (!load_module) {
-               dev_dbg(sdev->dev, "%s: Using generic module loading\n", __func__);
+               dev_dbg(sdev->dev, "Using generic module loading\n");
                load_module = sof_ipc3_parse_module_memcpy;
        } else {
-               dev_dbg(sdev->dev, "%s: Using custom module loading\n", __func__);
+               dev_dbg(sdev->dev, "Using custom module loading\n");
        }
 
        /* parse each module */