chiark / gitweb /
server/tun-*.c: Include tunnel name in read-error warnings.
[tripe] / server / tun-bsd.c
index bfa528b2d5c4e63030aaa364ba2aa2961de7ba14..6773ee64032dbef020eafe146830e7665e5653cc 100644 (file)
@@ -59,7 +59,8 @@ static void t_read(int fd, unsigned mode, void *v)
 
   n = read(fd, buf_i, sizeof(buf_i));
   if (n < 0) {
-    a_warn("TUN", "%s", p_ifname(t->p), "read-error", "?ERRNO", A_END);
+    a_warn("TUN", "%s", p_ifname(t->p), "bsd",
+          "read-error", "?ERRNO", A_END);
     return;
   }
   IF_TRACING(T_TUNNEL, {