diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-07 17:20:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-07 17:20:58 +0000 |
commit | 89f9d57a60d13565ca5669bd5ae8133695f3ae62 (patch) | |
tree | aaf60d7915d3c677255dfca5f5b71620f806d8b6 /sys/dev/ppbus | |
parent | bf0b83376e161556d1a2c5e8b1dd38e4dd04cbd0 (diff) | |
download | FreeBSD-src-89f9d57a60d13565ca5669bd5ae8133695f3ae62.zip FreeBSD-src-89f9d57a60d13565ca5669bd5ae8133695f3ae62.tar.gz |
- Make 'irq' intptr_t instead of uintptr_t so it handles a value of -1
properly.
- Add a cast to quiet a printf warning.
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r-- | sys/dev/ppbus/lpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index cb72aa0..9364c50 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -376,7 +376,7 @@ lpt_attach(device_t dev) struct lpt_data *sc = DEVTOSOFTC(dev); int zero = 0, unit = device_get_unit(dev); int error; - uintptr_t irq; + intptr_t irq; sc->sc_primed = 0; /* not primed yet */ @@ -405,7 +405,7 @@ lpt_attach(device_t dev) sc->sc_irq = 0; device_printf(dev, "Polled port\n"); } - lprintf(("irq %x %x\n", irq, sc->sc_irq)); + lprintf(("irq %x %x\n", (int)irq, sc->sc_irq)); lpt_release_ppbus(dev); |