From: Eric Leblond Date: Thu, 21 Nov 2013 10:19:17 +0000 (+0100) Subject: util-ioctl: ioctl error should be a warning X-Git-Tag: suricata-2.0beta2~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F657%2Fhead;p=thirdparty%2Fsuricata.git util-ioctl: ioctl error should be a warning --- diff --git a/src/util-ioctl.c b/src/util-ioctl.c index 30b9c1a45c..4b2923a32b 100644 --- a/src/util-ioctl.c +++ b/src/util-ioctl.c @@ -88,7 +88,8 @@ int GetIfaceMTU(char *pcap_dev) } if (ioctl(fd, SIOCGIFMTU, (char *)&ifr) < 0) { - SCLogInfo("Failure when trying to get MTU via ioctl: %d", + SCLogWarning(SC_ERR_SYSCALL, + "Failure when trying to get MTU via ioctl: %d", errno); close(fd); return -1;