From 0b401967f22298b363843595d2e15bd004288a91 Mon Sep 17 00:00:00 2001 From: jca Date: Sun, 25 Oct 2015 22:36:17 +0000 Subject: [PATCH] In case of error, also log the file name we failed to open. --- usr.sbin/rtadvd/advcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rtadvd/advcap.c b/usr.sbin/rtadvd/advcap.c index 025580627a2..9b2cf3a19ec 100644 --- a/usr.sbin/rtadvd/advcap.c +++ b/usr.sbin/rtadvd/advcap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: advcap.c,v 1.16 2015/10/25 22:11:34 jca Exp $ */ +/* $OpenBSD: advcap.c,v 1.17 2015/10/25 22:36:17 jca Exp $ */ /* $KAME: advcap.c,v 1.9 2002/05/29 14:28:35 itojun Exp $ */ /* @@ -128,7 +128,7 @@ getent(char *bp, char *name, char *cp) tf = open(cp, O_RDONLY); } if (tf < 0) { - log_warn("open"); + log_warn("open(\"%s\")", cp); return (-2); } for (;;) { -- 2.20.1