summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev.c b/dev.c
index 20dfe17..cf8d643 100644
--- a/dev.c
+++ b/dev.c
@@ -175,7 +175,7 @@ void device_set_flags(const char *ifname, const short flags)
ret = ioctl(sock, SIOCSIFFLAGS, &ifr);
if (unlikely(ret < 0))
- panic("Cannot set NIC flags!\n");
+ panic("Cannot set NIC flags (%s)!\n", strerror(errno));
close(sock);
}