mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] serial: ns16550_pci: Use %pa to print resource_size_t
@ 2020-04-01  7:13 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2020-04-01  7:13 UTC (permalink / raw)
  To: Barebox List

The correct format specifier for printing a resource_size_t is %pa. Use
it to avoid warninings.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/serial/serial_ns16550_pci.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/serial/serial_ns16550_pci.c b/drivers/serial/serial_ns16550_pci.c
index 392a2810d8..c29cfc5a75 100644
--- a/drivers/serial/serial_ns16550_pci.c
+++ b/drivers/serial/serial_ns16550_pci.c
@@ -3670,9 +3670,9 @@ pciserial_init_ports(struct pci_dev *dev, const struct pciserial_board *board)
 
 		res = &uart.resource;
 
-		dev_dbg(&dev->dev, "setup PCI %s console @ 0x%llx-0x%llx\n",
+		dev_dbg(&dev->dev, "setup PCI %s console @ 0x%pa-0x%pa\n",
 			res->flags & IORESOURCE_MEM ? "MMIO" : "IO port",
-			res->start, res->end);
+			&res->start, &res->end);
 
 		ns16550_dev = device_alloc("ns16550_serial", DEVICE_ID_DYNAMIC);
 		ns16550_dev->platform_data = uart.pdata;
@@ -3683,9 +3683,9 @@ pciserial_init_ports(struct pci_dev *dev, const struct pciserial_board *board)
 
 		rc = platform_device_register(ns16550_dev);
 		if (rc < 0) {
-			dev_err(&dev->dev, "couldn't register PCI %s console @0x%llx: %s\n",
+			dev_err(&dev->dev, "couldn't register PCI %s console @0x%pa: %s\n",
 				res->flags & IORESOURCE_MEM ? "MMIO" : "IO port",
-				res->start, strerror(-rc));
+				&res->start, strerror(-rc));
 
 			break;
 		}
-- 
2.26.0.rc2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-01  7:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01  7:13 [PATCH] serial: ns16550_pci: Use %pa to print resource_size_t Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox