summaryrefslogtreecommitdiff
path: root/src/bsd/tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bsd/tun.c')
-rw-r--r--src/bsd/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bsd/tun.c b/src/bsd/tun.c
index 4c50c40..d5697c5 100644
--- a/src/bsd/tun.c
+++ b/src/bsd/tun.c
@@ -123,7 +123,7 @@ int tun_init(tun_device_t* dev, const char* dev_name, const char* dev_type, cons
if(dynamic)
log_printf(ERROR, "can't open device file dynamically: no unused node left");
else
- log_printf(ERROR, "can't open device file (%s): %m", device_file);
+ log_printf(ERROR, "can't open device file (%s): %s", device_file, strerror(errno));
tun_close(dev);
return -1;