summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wpa
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2005-10-21 16:57:57 +0000
committerwpaul <wpaul@FreeBSD.org>2005-10-21 16:57:57 +0000
commitc956c5f74bfc4a6592a51728a488725c93f84917 (patch)
treeb23e892654364675c63837a612723a79f389d72c /usr.sbin/wpa
parentdc8c97e7dc5e2be598cbcf355d87ba14f537e450 (diff)
downloadFreeBSD-src-c956c5f74bfc4a6592a51728a488725c93f84917.zip
FreeBSD-src-c956c5f74bfc4a6592a51728a488725c93f84917.tar.gz
Hide a diagnostic message under if (verbose) to avoid cluttering the
system log when not in verbose logging mode.
Diffstat (limited to 'usr.sbin/wpa')
-rw-r--r--usr.sbin/wpa/ndis_events/ndis_events.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/wpa/ndis_events/ndis_events.c b/usr.sbin/wpa/ndis_events/ndis_events.c
index c36106d..d2dedff 100644
--- a/usr.sbin/wpa/ndis_events/ndis_events.c
+++ b/usr.sbin/wpa/ndis_events/ndis_events.c
@@ -192,11 +192,14 @@ announce_event(ifname, sock, dst)
if (ioctl(s, SIOCGPRIVATE_0, &ifr) < 0) {
close(s);
- if (errno == ENOENT)
- dbgmsg("drained all events from %s", ifname, errno);
- else
- dbgmsg("failed to read event info from %s: %d",
- ifname, errno);
+ if (verbose) {
+ if (errno == ENOENT)
+ dbgmsg("drained all events from %s",
+ ifname, errno);
+ else
+ dbgmsg("failed to read event info from %s: %d",
+ ifname, errno);
+ }
return(ENOENT);
}
OpenPOWER on IntegriCloud