From 89f9d57a60d13565ca5669bd5ae8133695f3ae62 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 7 Nov 2002 17:20:58 +0000 Subject: - Make 'irq' intptr_t instead of uintptr_t so it handles a value of -1 properly. - Add a cast to quiet a printf warning. --- sys/dev/ppbus/lpt.c | 4 ++-- 1 file 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); -- cgit v1.1