spi: s3c64xx: fix printk warnings
authorJingoo Han <jg1.han@samsung.com>
Mon, 15 Jul 2013 23:53:33 +0000 (08:53 +0900)
committerMark Brown <broonie@linaro.org>
Wed, 24 Jul 2013 14:32:35 +0000 (15:32 +0100)
Fix the following build warnings when LPAE is enabled:

drivers/spi/spi-s3c64xx.c:1466:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type
'resource_size_t' [-Wformat]
drivers/spi/spi-s3c64xx.c:1466:2: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type
'resource_size_t' [-Wformat]

Use vsprintf extension %pR to format resource.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c

index 61cffaff78fc2fe3db04819ba5a43172eea1d415..702a5362aaac6169b386ac8ded41e5d5099ed192 100644 (file)
@@ -1443,8 +1443,8 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
 
        dev_dbg(&pdev->dev, "Samsung SoC SPI Driver loaded for Bus SPI-%d with %d Slaves attached\n",
                                        sdd->port_id, master->num_chipselect);
-       dev_dbg(&pdev->dev, "\tIOmem=[0x%x-0x%x]\tDMA=[Rx-%d, Tx-%d]\n",
-                                       mem_res->end, mem_res->start,
+       dev_dbg(&pdev->dev, "\tIOmem=[%pR]\tDMA=[Rx-%d, Tx-%d]\n",
+                                       mem_res,
                                        sdd->rx_dma.dmach, sdd->tx_dma.dmach);
 
        pm_runtime_enable(&pdev->dev);
This page took 0.025177 seconds and 5 git commands to generate.