Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2015 15:12:24 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283533 - head/sys/dev/iwn
Message-ID:  <201505251512.t4PFCOQH083849@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Mon May 25 15:12:23 2015
New Revision: 283533
URL: https://svnweb.freebsd.org/changeset/base/283533

Log:
  Use ic_printf() instead of if_printf().

Modified:
  head/sys/dev/iwn/if_iwn.c

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Mon May 25 15:09:17 2015	(r283532)
+++ head/sys/dev/iwn/if_iwn.c	Mon May 25 15:12:23 2015	(r283533)
@@ -2536,8 +2536,7 @@ iwn_setregdomain(struct ieee80211com *ic
 
 		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;
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505251512.t4PFCOQH083849>