diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2016-01-01 15:17:24 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2016-01-01 15:17:24 +0000 |
commit | 4650ba515687ea9f157c4707929fab601526828c (patch) | |
tree | 29f09bc3189aaafdffa324d748ef02ed0c6fe1ea | |
parent | eceeaeddc03e27649dc1c9a1dad301638471e673 (diff) | |
download | FreeBSD-src-4650ba515687ea9f157c4707929fab601526828c.zip FreeBSD-src-4650ba515687ea9f157c4707929fab601526828c.tar.gz |
Fix a couple printf formats.
This was found when working on 64-bit PowerPC book-e support.
-rw-r--r-- | sys/dev/sec/sec.c | 3 | ||||
-rw-r--r-- | sys/dev/tsec/if_tsec.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/sec/sec.c b/sys/dev/sec/sec.c index 3b99a3e..5ef000f 100644 --- a/sys/dev/sec/sec.c +++ b/sys/dev/sec/sec.c @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include <sys/random.h> #include <sys/rman.h> +#include <machine/_inttypes.h> #include <machine/bus.h> #include <machine/resource.h> @@ -235,7 +236,7 @@ sec_probe(device_t dev) sc->sc_version = 3; break; default: - device_printf(dev, "unknown SEC ID 0x%016llx!\n", id); + device_printf(dev, "unknown SEC ID 0x%16"PRIx64"!\n", id); return (ENXIO); } diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c index 7ec2f98..3fd8726 100644 --- a/sys/dev/tsec/if_tsec.c +++ b/sys/dev/tsec/if_tsec.c @@ -561,7 +561,7 @@ tsec_set_mac_address(struct tsec_softc *sc) TSEC_GLOBAL_LOCK_ASSERT(sc); KASSERT((ETHER_ADDR_LEN <= sizeof(macbuf)), - ("tsec_set_mac_address: (%d <= %d", ETHER_ADDR_LEN, + ("tsec_set_mac_address: (%d <= %zd", ETHER_ADDR_LEN, sizeof(macbuf))); macbufp = (char *)macbuf; |