1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Use if_printf(ifp, "blah") instead of printf("sr%d: blah", ifp->if_unit).

This commit is contained in:
Brooks Davis 2002-10-01 00:58:16 +00:00
parent 421f55825b
commit 091f3945cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104258

View File

@ -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)