diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2017-03-14 20:38:04 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2017-03-21 13:17:22 +0900 |
commit | 9cdf0ed25a9b34fd82cb0eb47a8bdc47dc9f4ff5 (patch) | |
tree | 5b3cdd7729308fbe0a7ea18dbca5a27eca45b47a /drivers/gpu/drm/exynos/exynos_drm_dsi.c | |
parent | f07d9c2864d4ccf0a0b5bd2dd6491f5204eab5fe (diff) | |
download | op-kernel-dev-9cdf0ed25a9b34fd82cb0eb47a8bdc47dc9f4ff5.zip op-kernel-dev-9cdf0ed25a9b34fd82cb0eb47a8bdc47dc9f4ff5.tar.gz |
drm/exynos: Print kernel pointers in a restricted form
Printing raw kernel pointers might reveal information which sometimes we
try to hide (e.g. with Kernel Address Space Layout Randomization). Use
the "%pK" format so these pointers will be hidden for unprivileged
users.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_dsi.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_dsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index ef6f9c6..c671f8e 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -966,7 +966,7 @@ static void exynos_dsi_send_to_fifo(struct exynos_dsi *dsi, bool first = !xfer->tx_done; u32 reg; - dev_dbg(dev, "< xfer %p: tx len %u, done %u, rx len %u, done %u\n", + dev_dbg(dev, "< xfer %pK: tx len %u, done %u, rx len %u, done %u\n", xfer, length, xfer->tx_done, xfer->rx_len, xfer->rx_done); if (length > DSI_TX_FIFO_SIZE) @@ -1164,7 +1164,7 @@ static bool exynos_dsi_transfer_finish(struct exynos_dsi *dsi) spin_unlock_irqrestore(&dsi->transfer_lock, flags); dev_dbg(dsi->dev, - "> xfer %p, tx_len %zu, tx_done %u, rx_len %u, rx_done %u\n", + "> xfer %pK, tx_len %zu, tx_done %u, rx_len %u, rx_done %u\n", xfer, xfer->packet.payload_length, xfer->tx_done, xfer->rx_len, xfer->rx_done); |