diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2003-09-26 17:17:47 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2003-09-26 17:17:47 +0000 |
| commit | b299c2186f044bb1fd51382d2d06292dc60b9022 (patch) | |
| tree | 67d093dd9e2e299c5b3d31aa9b1ce3696abf7d88 /sys/dev | |
| parent | c8d69e8d1ce94cbb138db7a1474fd7b971beb5c2 (diff) | |
Remove casts and use %x in printf for tc_offset_t,
which is int32_t on both alpha and pmax.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/tc/ioasic_subr.c | 6 | ||||
| -rw-r--r-- | sys/dev/tc/tc.c | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/tc/ioasic_subr.c b/sys/dev/tc/ioasic_subr.c index 980a077e832..3404cd16bde 100644 --- a/sys/dev/tc/ioasic_subr.c +++ b/sys/dev/tc/ioasic_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: ioasic_subr.c,v 1.4 2003/01/01 00:10:25 thorpej Exp $ */ +/* $NetBSD: ioasic_subr.c,v 1.5 2003/09/26 17:17:47 tsutsui Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -29,7 +29,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ioasic_subr.c,v 1.4 2003/01/01 00:10:25 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ioasic_subr.c,v 1.5 2003/09/26 17:17:47 tsutsui Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -48,7 +48,7 @@ ioasicprint(aux, pnp) if (pnp) aprint_normal("%s at %s", d->iada_modname, pnp); - aprint_normal(" offset 0x%lx", (long)d->iada_offset); + aprint_normal(" offset 0x%x", d->iada_offset); return (UNCONF); } diff --git a/sys/dev/tc/tc.c b/sys/dev/tc/tc.c index 9d489cc28da..139642132b2 100644 --- a/sys/dev/tc/tc.c +++ b/sys/dev/tc/tc.c @@ -1,4 +1,4 @@ -/* $NetBSD: tc.c,v 1.35 2003/01/01 00:10:25 thorpej Exp $ */ +/* $NetBSD: tc.c,v 1.36 2003/09/26 17:17:47 tsutsui Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tc.c,v 1.35 2003/01/01 00:10:25 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tc.c,v 1.36 2003/09/26 17:17:47 tsutsui Exp $"); #include "opt_tcverbose.h" @@ -193,8 +193,7 @@ tcprint(aux, pnp) tc_devinfo(ta->ta_modname, devinfo); aprint_normal("%s at %s", devinfo, pnp); } - aprint_normal(" slot %d offset 0x%lx", ta->ta_slot, - (long)ta->ta_offset); + aprint_normal(" slot %d offset 0x%x", ta->ta_slot, ta->ta_offset); return (UNCONF); } |
