From a5d0e57adc8f537bc92435869cdb307c63921c59 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Tue, 1 Oct 2002 00:42:51 +0000 Subject: [PATCH] Use if_printf(ifp, "blah") instead of printf("ar%d: blah", ifp->if_unit). --- sys/dev/ar/if_ar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/ar/if_ar.c b/sys/dev/ar/if_ar.c index 059b616e428d..31ddf03413dd 100644 --- a/sys/dev/ar/if_ar.c +++ b/sys/dev/ar/if_ar.c @@ -772,20 +772,20 @@ arioctl(struct ifnet *ifp, u_long cmd, caddr_t data) int was_up, should_be_up; struct ar_softc *sc = ifp->if_softc; - TRC(printf("ar%d: arioctl.\n", ifp->if_unit);) + TRC(if_printf(ifp, "arioctl.\n");) was_up = ifp->if_flags & IFF_RUNNING; error = sppp_ioctl(ifp, cmd, data); - TRC(printf("ar%d: ioctl: ifsppp.pp_flags = %x, if_flags %x.\n", - ifp->if_unit, ((struct sppp *)ifp)->pp_flags, ifp->if_flags);) + TRC(if_printf(ifp, "ioctl: ifsppp.pp_flags = %x, if_flags %x.\n", + ((struct sppp *)ifp)->pp_flags, ifp->if_flags);) if(error) return (error); if((cmd != SIOCSIFFLAGS) && cmd != (SIOCSIFADDR)) return (0); - TRC(printf("ar%d: arioctl %s.\n", ifp->if_unit, + TRC(if_printf(ifp, "arioctl %s.\n", (cmd == SIOCSIFFLAGS) ? "SIOCSIFFLAGS" : "SIOCSIFADDR");) s = splimp();