]> git.baikalelectronics.ru Git - kernel.git/commit
spi: bcm63xx: use correct format string for printing a resource
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Nov 2015 16:44:34 +0000 (17:44 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 18:43:41 +0000 (18:43 +0000)
commit7464966f530117d2e4c5af7587182c83a67586c9
tree12a0b4257798ad7bc99f01bd65255c60084d35e3
parent2715d332e6151136472842d51b2ec873c0652275
spi: bcm63xx: use correct format string for printing a resource

With a 64-bit resource_size_t, we get a build warning on bcm63xx_spi_probe:

drivers/spi/spi-bcm63xx.c:565:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=]

As we are printing a resource, we can just use the %pr format
specifier that pretty-prints the address and avoids the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm63xx.c