Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: xilinx: Fix info message during probe

The info message was showing the mapped address of the device. To avoid
security problems, all virtual addresses are converted to __ptrval__, so
the message was useless/ugly:

[ 2.304949] xilinx_spi b0010000.spi-flash: at 0xB0010000 mapped to 0x(____ptrval____), irq=37

Use %pR instead:

[ 15.021354] xilinx_spi b0010000.spi-flash: at [mem 0xb0010000-0xb001ffff], irq=37

Signed-off-by: Ricardo Ribalda <ribalda@kernel.org>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/20200915112936.320647-1-ribalda@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Ricardo Ribalda and committed by
Mark Brown
985be7eb 9d99e558

+1 -2
+1 -2
drivers/spi/spi-xilinx.c
··· 491 491 goto put_master; 492 492 } 493 493 494 - dev_info(&pdev->dev, "at 0x%08llX mapped to 0x%p, irq=%d\n", 495 - (unsigned long long)res->start, xspi->regs, xspi->irq); 494 + dev_info(&pdev->dev, "at %pR, irq=%d\n", res, xspi->irq); 496 495 497 496 if (pdata) { 498 497 for (i = 0; i < pdata->num_devices; i++)