summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/intel/hda-trace.c
diff options
context:
space:
mode:
authorCurtis Malainey <cujomalainey@chromium.org>2021-02-08 17:21:46 -0600
committerMark Brown <broonie@kernel.org>2021-02-10 17:17:11 +0000
commitce1f55bac5534aa518e26b94728173ee45f91a8c (patch)
tree1bd35bb6040dad671bdbb90748a2a77b5667271a /sound/soc/sof/intel/hda-trace.c
parenta8f50cd9be7cc4c57f29c1390568225ebee90eda (diff)
downloadlinux-ce1f55bac5534aa518e26b94728173ee45f91a8c.tar.gz
linux-ce1f55bac5534aa518e26b94728173ee45f91a8c.tar.bz2
linux-ce1f55bac5534aa518e26b94728173ee45f91a8c.zip
ASoC: SOF: fix string format for errors
These are negative error return values, printing them as hex is annoying and not beneficial. Switch back to signed type to make error lookup simpler. Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Signed-off-by: Curtis Malainey <cujomalainey@chromium.org> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20210208232149.58899-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel/hda-trace.c')
-rw-r--r--sound/soc/sof/intel/hda-trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sof/intel/hda-trace.c b/sound/soc/sof/intel/hda-trace.c
index 81d76d3debc6..29e3da3c63db 100644
--- a/sound/soc/sof/intel/hda-trace.c
+++ b/sound/soc/sof/intel/hda-trace.c
@@ -32,7 +32,7 @@ static int hda_dsp_trace_prepare(struct snd_sof_dev *sdev)
ret = hda_dsp_stream_hw_params(sdev, stream, dmab, NULL);
if (ret < 0)
- dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret);
+ dev_err(sdev->dev, "error: hdac prepare failed: %d\n", ret);
return ret;
}
@@ -59,7 +59,7 @@ int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag)
*/
ret = hda_dsp_trace_prepare(sdev);
if (ret < 0) {
- dev_err(sdev->dev, "error: hdac trace init failed: %x\n", ret);
+ dev_err(sdev->dev, "error: hdac trace init failed: %d\n", ret);
hda_dsp_stream_put(sdev, SNDRV_PCM_STREAM_CAPTURE, *stream_tag);
hda->dtrace_stream = NULL;
*stream_tag = 0;