summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenjamin.gaignard@linaro.org <benjamin.gaignard@linaro.org>2018-07-06 15:07:03 +0200
committerMark Brown <broonie@kernel.org>2018-07-09 12:15:30 +0100
commit8db339d66774821091f73bd0e57c8a7511c5988e (patch)
treeb14a1a8a80a7d8b3e7b6804ac786d79ee8cfcda0
parentf7ddff54d0a0f068442414b48bec7f22aa777de7 (diff)
downloadtalos-obmc-linux-8db339d66774821091f73bd0e57c8a7511c5988e.tar.gz
talos-obmc-linux-8db339d66774821091f73bd0e57c8a7511c5988e.zip
ASoC: stm32: replace "%p" with "%pK"
The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/stm/stm32_adfsdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c
index db73fef3e500..0e9373064032 100644
--- a/sound/soc/stm/stm32_adfsdm.c
+++ b/sound/soc/stm/stm32_adfsdm.c
@@ -149,7 +149,7 @@ static int stm32_afsdm_pcm_cb(const void *data, size_t size, void *private)
unsigned int old_pos = priv->pos;
unsigned int cur_size = size;
- dev_dbg(rtd->dev, "%s: buff_add :%p, pos = %d, size = %zu\n",
+ dev_dbg(rtd->dev, "%s: buff_add :%pK, pos = %d, size = %zu\n",
__func__, &pcm_buff[priv->pos], priv->pos, size);
if ((priv->pos + size) > buff_size) {
OpenPOWER on IntegriCloud