Hide a debug printf, NDIS_DEBUG is always defined and we test the sysctl.

MFC after:	3 days
This commit is contained in:
Andrew Thompson 2007-12-02 09:03:43 +00:00
parent e880149eb9
commit 4d50f65ceb

View File

@ -2528,9 +2528,11 @@ ndis_setstate_80211(sc)
/* Set SSID -- always do this last. */
#ifdef NDIS_DEBUG
printf("Setting ESSID to ");
ieee80211_print_essid(ni->ni_essid, ni->ni_esslen);
printf("\n");
if (ndis_debug > 0) {
printf("Setting ESSID to ");
ieee80211_print_essid(ni->ni_essid, ni->ni_esslen);
printf("\n");
}
#endif
len = sizeof(ssid);