artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eb9756
)
Say which read failed, helps debugging.
author
florian
<florian@openbsd.org>
Mon, 23 Aug 2021 18:22:56 +0000
(18:22 +0000)
committer
florian
<florian@openbsd.org>
Mon, 23 Aug 2021 18:22:56 +0000
(18:22 +0000)
sbin/dhcpleased/frontend.c
patch
|
blob
|
history
diff --git
a/sbin/dhcpleased/frontend.c
b/sbin/dhcpleased/frontend.c
index
66cacca
..
b3f015b
100644
(file)
--- a/
sbin/dhcpleased/frontend.c
+++ b/
sbin/dhcpleased/frontend.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: frontend.c,v 1.
19 2021/08/23 18:21:48
florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.
20 2021/08/23 18:22:56
florian Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
@@
-832,7
+832,7
@@
bpf_receive(int fd, short events, void *arg)
iface = (struct iface *)arg;
if ((len = read(fd, iface->bpfev.buf, BPFLEN)) == -1) {
- log_warn("
read"
);
+ log_warn("
%s: read", __func__
);
return;
}