From 93eff084121cd1b32e50001b505165a9b6ffe681 Mon Sep 17 00:00:00 2001 From: Yoshinobu Inoue Date: Thu, 24 Feb 2000 18:46:51 +0000 Subject: [PATCH] Print ifname when sendmsg failed. Approved by: jkh --- usr.sbin/rtadvd/rtadvd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c index 4a9d276b4ee8..d5a58459e19f 100644 --- a/usr.sbin/rtadvd/rtadvd.c +++ b/usr.sbin/rtadvd/rtadvd.c @@ -1169,8 +1169,8 @@ struct rainfo *rainfo; if (i < 0 || i != rainfo->ra_datalen) { if (i < 0) { - syslog(LOG_ERR, "<%s> sendmsg: %s", - __FUNCTION__, strerror(errno)); + syslog(LOG_ERR, "<%s> sendmsg to %s: %s", + __FUNCTION__, rainfo->ifname, strerror(errno)); } }