Hide a diagnostic message under if (verbose) to avoid cluttering the

system log when not in verbose logging mode.
This commit is contained in:
Bill Paul 2005-10-21 16:57:57 +00:00
parent 200caaf0c0
commit b2dec35043
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151541

View File

@ -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);
}