summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-10-04 00:33:46 +0000
committerpeter <peter@FreeBSD.org>2002-10-04 00:33:46 +0000
commit21201253d25cf98538c358a1f4583c3dcf302e6b (patch)
treef25c8270ceabfca760219703633c782c07163f7b /sys/dev/acpica
parentf5c77557fc41696c0e205e1fd1996785b60615df (diff)
downloadFreeBSD-src-21201253d25cf98538c358a1f4583c3dcf302e6b.zip
FreeBSD-src-21201253d25cf98538c358a1f4583c3dcf302e6b.tar.gz
Fix printf format errors on 64 bit systems where sizes are long
instead of just int.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_pcib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c
index d6c3e47..10a1a2f 100644
--- a/sys/dev/acpica/acpi_pcib.c
+++ b/sys/dev/acpica/acpi_pcib.c
@@ -205,8 +205,10 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin,
AcpiFormatException(status));
/* this is not fatal, since it may be hardwired */
}
- ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "got %d bytes for %s._CRS\n", crsbuf.Length, acpi_name(lnkdev)));
- ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "got %d bytes for %s._PRS\n", prsbuf.Length, acpi_name(lnkdev)));
+ ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "got %ld bytes for %s._CRS\n",
+ (long)crsbuf.Length, acpi_name(lnkdev)));
+ ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "got %ld bytes for %s._PRS\n",
+ (long)prsbuf.Length, acpi_name(lnkdev)));
/*
* The interrupt may already be routed, so check _CRS first. We don't check the
OpenPOWER on IntegriCloud