From ab51ac11e68ce0b075688bf17fc89e0ba645b2ed Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sat, 20 Jun 2020 19:34:58 +0200 Subject: Add new assert macros, convert server.c to use them --- igmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'igmp.c') diff --git a/igmp.c b/igmp.c index 9ada4e4..b809e4b 100644 --- a/igmp.c +++ b/igmp.c @@ -513,9 +513,9 @@ igmp_init(struct cfg *cfg) sfd = socket(AF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC, htons(ETH_P_ALL)); if (sfd < 0) { if (errno == EACCES || errno == EPERM) - error("permission denied"); + info("Unable to do IGMP snooping, permission denied"); else - error("%mn"); + error("socket: %m"); goto error; } -- cgit v1.2.3