From 9dbbcd5d9acab5697a8107690f553d70f197f2b7 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 25 May 2015 15:12:23 +0000 Subject: [PATCH] Use ic_printf() instead of if_printf(). --- sys/dev/iwn/if_iwn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c index 0c93d414487..3538161ea53 100644 --- a/sys/dev/iwn/if_iwn.c +++ b/sys/dev/iwn/if_iwn.c @@ -2536,8 +2536,7 @@ iwn_setregdomain(struct ieee80211com *ic, struct ieee80211_regdomain *rd, channel = iwn_find_eeprom_channel(sc, c); if (channel == NULL) { - if_printf(ic->ic_ifp, - "%s: invalid channel %u freq %u/0x%x\n", + ic_printf(ic, "%s: invalid channel %u freq %u/0x%x\n", __func__, c->ic_ieee, c->ic_freq, c->ic_flags); return EINVAL; } @@ -4905,7 +4904,7 @@ iwn_watchdog(void *arg) if (sc->sc_tx_timer > 0) { if (--sc->sc_tx_timer == 0) { - if_printf(ifp, "device timeout\n"); + ic_printf(ic, "device timeout\n"); ieee80211_runtask(ic, &sc->sc_reinit_task); return; }