Skip to contentSkip to conversation

drivers/spi/rk_spi.c: Fix debug format warning

PATCH In review Tom Rini 1 participant 2 messages Jan 17, 2016 – Jan 19, 2016 SPI

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 drivers/spi/rk_spi.c: Fix debug format warning

We need to use %lx not %x to describe a fdt_addr_t

---
 drivers/spi/rk_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/rk_spi.c +1 -1
index 5e0c6ad..242a83b 100644
@@ -135,7 +135,7 @@ static int rockchip_spi_ofdata_to_platdata(struct udevice *bus)
 					50000000);
 	plat->deactivate_delay_us = fdtdec_get_int(blob, node,
 					"spi-deactivate-delay", 0);
-	debug("%s: base=%x, periph_id=%d, max-frequency=%d, deactivate_delay=%d\n",
+	debug("%s: base=%lx, periph_id=%d, max-frequency=%d, deactivate_delay=%d\n",
 	      __func__, plat->base, plat->periph_id, plat->frequency,
 	      plat->deactivate_delay_us);
 
Signature · 1 line
2.7.0.rc3
author
#1 lore raw
Quoted 4 lines · Tom Rini

We need to use %lx not %x to describe a fdt_addr_t

Reworded the subject and applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160119/7da92bf8/attachment.sig>