chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
admin: Initialize reference counter for client blocks.
[tripe]
/
tun-bsd.c
diff --git
a/tun-bsd.c
b/tun-bsd.c
index 22f01e6fe71d7aca4496e87f318cd80f8332b70f..4e8c0bd82a6ba0d0a30fc5d3296f72aae7382e3c 100644
(file)
--- a/
tun-bsd.c
+++ b/
tun-bsd.c
@@
-76,7
+76,7
@@
static void t_read(int fd, unsigned mode, void *v)
n = read(fd, buf_i, sizeof(buf_i));
if (n < 0) {
n = read(fd, buf_i, sizeof(buf_i));
if (n < 0) {
- a_warn("TUN
%s read-error -- %s", t_ifname(t), strerror(errno)
);
+ a_warn("TUN
", "%s", t_ifname(t), "read-error", "?ERRNO", A_END
);
return;
}
IF_TRACING(T_TUNNEL, {
return;
}
IF_TRACING(T_TUNNEL, {
@@
-125,10
+125,10
@@
static tunnel *t_create(peer *p)
T( trace(T_TUNNEL, "tunnel device %u busy: skipping", n); )
break;
case ENOENT:
T( trace(T_TUNNEL, "tunnel device %u busy: skipping", n); )
break;
case ENOENT:
- a_warn("TUN
- bsd no-tunnel-devices"
);
+ a_warn("TUN
", "-", "bsd", "no-tunnel-devices", A_END
);
return (0);
default:
return (0);
default:
- a_warn("TUN
- open-error %s -- %s", buf, strerror(errno)
);
+ a_warn("TUN
", "-", "open-error", "%s", buf, "?ERRNO", A_END
);
break;
}
n++;
break;
}
n++;