ASoC: stm32: replace "%p" with "%pK"
authorbenjamin.gaignard@linaro.org <benjamin.gaignard@linaro.org>
Fri, 6 Jul 2018 13:07:03 +0000 (15:07 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 9 Jul 2018 11:15:30 +0000 (12:15 +0100)
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>
sound/soc/stm/stm32_adfsdm.c

index db73fef..0e93730 100644 (file)
@@ -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) {