diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-10-11 13:15:42 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-10-11 13:15:42 +0000 |
commit | 1c06792050a14ed11b283353f5d20cc0cfd873ee (patch) | |
tree | eb16f82332fa92c3fbced6a4fa37199eb4913ed9 /sys/dev | |
parent | 43dadd266f027dd99e2f78394d4f4ca6b045a218 (diff) |
printf format string typo in HIFN_DEBUG section.
size_t on printf (cast to u_long and use %lu)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/hifn7751.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c index 43663c60d8c..cdd1d451d71 100644 --- a/sys/dev/pci/hifn7751.c +++ b/sys/dev/pci/hifn7751.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751.c,v 1.46 2000/08/15 14:22:44 jason Exp $ */ +/* $OpenBSD: hifn7751.c,v 1.47 2000/10/11 13:15:41 itojun Exp $ */ /* * Invertex AEON / Hi/fn 7751 driver @@ -175,8 +175,8 @@ hifn_attach(parent, self, aux) } if (bus_dmamem_map(sc->sc_dmat, &seg, rseg, sizeof(*sc->sc_dma), &kva, BUS_DMA_NOWAIT)) { - printf(": can't map dma buffers (%d bytes)\n", - sizeof(*sc->sc_dma)); + printf(": can't map dma buffers (%lu bytes)\n", + (u_long)sizeof(*sc->sc_dma)); bus_dmamem_free(sc->sc_dmat, &seg, rseg); goto fail_io1; } @@ -437,7 +437,7 @@ hifn_enable_crypto(sc, pciid) if (encl != 0 && encl != HIFN_PUSTAT_ENA_0) { #ifdef HIFN_DEBUG - printf("%: Unknown encryption level\n", sc->sc_dv.dv_xname); + printf("%s: Unknown encryption level\n", sc->sc_dv.dv_xname); #endif return 1; } |