summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-07 21:25:49 +0000
committerjhb <jhb@FreeBSD.org>2002-11-07 21:25:49 +0000
commit6675ed5b5ab13f817479d72a685d67c0d2d3353c (patch)
tree5ab68329d7e26c1364bab09a2a9a38d0ef056c1e
parent03fe039475ad8f772826c68c33e81f458d83e909 (diff)
downloadFreeBSD-src-6675ed5b5ab13f817479d72a685d67c0d2d3353c.zip
FreeBSD-src-6675ed5b5ab13f817479d72a685d67c0d2d3353c.tar.gz
Quiet some DIAGNOSTIC printf warnings with band-aid casts.
-rw-r--r--sys/dev/ubsec/ubsec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c
index 5071989..37cb37e 100644
--- a/sys/dev/ubsec/ubsec.c
+++ b/sys/dev/ubsec/ubsec.c
@@ -55,6 +55,7 @@
#include <sys/mbuf.h>
#include <sys/lock.h>
#include <sys/mutex.h>
+#include <sys/stdint.h>
#include <sys/sysctl.h>
#include <sys/endian.h>
@@ -2565,14 +2566,14 @@ ubsec_kprocess_rsapriv(struct ubsec_softc *sc, struct cryptkop *krp, int hint)
#ifdef DIAGNOSTIC
if (rp->rpr_msgin.dma_paddr & 3 || rp->rpr_msgin.dma_size & 3) {
- panic("%s: rsapriv: invalid msgin %x(0x%x)",
+ panic("%s: rsapriv: invalid msgin %x(0x%jx)",
device_get_nameunit(sc->sc_dev),
- rp->rpr_msgin.dma_paddr, rp->rpr_msgin.dma_size);
+ rp->rpr_msgin.dma_paddr, (uintmax_t)rp->rpr_msgin.dma_size);
}
if (rp->rpr_msgout.dma_paddr & 3 || rp->rpr_msgout.dma_size & 3) {
- panic("%s: rsapriv: invalid msgout %x(0x%x)",
+ panic("%s: rsapriv: invalid msgout %x(0x%jx)",
device_get_nameunit(sc->sc_dev),
- rp->rpr_msgout.dma_paddr, rp->rpr_msgout.dma_size);
+ rp->rpr_msgout.dma_paddr, (uintmax_t)rp->rpr_msgout.dma_size);
}
#endif
OpenPOWER on IntegriCloud