From: florian Date: Mon, 23 Aug 2021 18:22:56 +0000 (+0000) Subject: Say which read failed, helps debugging. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=37fb58f6be7dae502e2ee1d9baedab6a5091335a;p=openbsd Say which read failed, helps debugging. --- diff --git a/sbin/dhcpleased/frontend.c b/sbin/dhcpleased/frontend.c index 66caccac055..b3f015bcf07 100644 --- 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 @@ -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; }