From 091f3945cb9e2c30148923db78ab5d31ab20970a Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Tue, 1 Oct 2002 00:58:16 +0000 Subject: [PATCH] Use if_printf(ifp, "blah") instead of printf("sr%d: blah", ifp->if_unit). --- sys/dev/sr/if_sr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c index 7d6b9b34b683..636618c8461b 100644 --- a/sys/dev/sr/if_sr.c +++ b/sys/dev/sr/if_sr.c @@ -1005,8 +1005,8 @@ srioctl(struct ifnet *ifp, u_long cmd, caddr_t data) struct sr_softc *sc = ifp->if_softc; #if BUGGY > 0 - printf("sr%d: srioctl(ifp=%08x, cmd=%08x, data=%08x)\n", - ifp->if_unit, ifp, cmd, data); + if_printf(ifp, "srioctl(ifp=%08x, cmd=%08x, data=%08x)\n", + ifp, cmd, data); #endif was_up = ifp->if_flags & IFF_RUNNING; @@ -1014,8 +1014,8 @@ srioctl(struct ifnet *ifp, u_long cmd, caddr_t data) error = sppp_ioctl(ifp, cmd, data); #if BUGGY > 1 - printf("sr%d: ioctl: ifsppp.pp_flags = %08x, if_flags %08x.\n", - ifp->if_unit, ((struct sppp *)ifp)->pp_flags, ifp->if_flags); + if_printf(ifp, "ioctl: ifsppp.pp_flags = %08x, if_flags %08x.\n", + ((struct sppp *)ifp)->pp_flags, ifp->if_flags); #endif if (error)