From 37fb58f6be7dae502e2ee1d9baedab6a5091335a Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 23 Aug 2021 18:22:56 +0000 Subject: [PATCH] Say which read failed, helps debugging. --- sbin/dhcpleased/frontend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1