Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2009 18:46:36 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188924 - head/sys/net80211
Message-ID:  <200902221846.n1MIkagS003583@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Sun Feb 22 18:46:36 2009
New Revision: 188924
URL: http://svn.freebsd.org/changeset/base/188924

Log:
  display min/max dwell times in msecs in debug msgs

Modified:
  head/sys/net80211/ieee80211_scan.c

Modified: head/sys/net80211/ieee80211_scan.c
==============================================================================
--- head/sys/net80211/ieee80211_scan.c	Sun Feb 22 18:45:30 2009	(r188923)
+++ head/sys/net80211/ieee80211_scan.c	Sun Feb 22 18:46:36 2009	(r188924)
@@ -346,7 +346,8 @@ scan_dump(struct ieee80211_scan_state *s
 
 	if_printf(vap->iv_ifp, "scan set ");
 	ieee80211_scan_dump_channels(ss);
-	printf(" dwell min %lu max %lu\n", ss->ss_mindwell, ss->ss_maxdwell);
+	printf(" dwell min %lums max %lums\n",
+	    ticks_to_msecs(ss->ss_mindwell), ticks_to_msecs(ss->ss_maxdwell));
 }
 #endif /* IEEE80211_DEBUG */
 
@@ -919,7 +920,7 @@ again:
 			maxdwell = ss->ss_maxdwell;
 
 		IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN,
-		    "%s: chan %3d%c -> %3d%c [%s, dwell min %lu max %lu]\n",
+		    "%s: chan %3d%c -> %3d%c [%s, dwell min %lums max %lums]\n",
 		    __func__,
 		    ieee80211_chan2ieee(ic, ic->ic_curchan),
 		        channel_type(ic->ic_curchan),
@@ -927,7 +928,7 @@ again:
 		    (ss->ss_flags & IEEE80211_SCAN_ACTIVE) &&
 			(chan->ic_flags & IEEE80211_CHAN_PASSIVE) == 0 ?
 			"active" : "passive",
-		    ss->ss_mindwell, maxdwell);
+		    ticks_to_msecs(ss->ss_mindwell), ticks_to_msecs(maxdwell));
 
 		/*
 		 * Potentially change channel and phy mode.



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