Hide a diagnostic message under if (verbose) to avoid cluttering the
system log when not in verbose logging mode.
This commit is contained in:
parent
200caaf0c0
commit
b2dec35043
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user