From 215a46965b1d27f73d9e3a0f1bafdc3ca219b610 Mon Sep 17 00:00:00 2001 From: Atsushi Murai Date: Sat, 8 Jul 1995 06:08:52 +0000 Subject: [PATCH] Clean up mesage log facility stuff accordng to Joradn's question. Reviewed by: amurai@spec.co.jp --- usr.sbin/ppp/route.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c index 5d8267052a43..84f3d627f41e 100644 --- a/usr.sbin/ppp/route.c +++ b/usr.sbin/ppp/route.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: route.c,v 1.2 1995/02/26 12:17:56 amurai Exp $ + * $Id: route.c,v 1.3 1995/05/30 03:50:56 rgrimes Exp $ * */ #include @@ -40,6 +40,7 @@ #include #include #include +#include "log.h" static int IfIndex; @@ -108,7 +109,8 @@ struct in_addr mask; rtmes.m_rtm.rtm_msglen = nb; wb = write(s, &rtmes, nb); if (wb < 0) { - perror("write"); + LogPrintf(LOG_TCPIP, "Already set route addr dst=%x, gateway=%x\n" + ,dst.s_addr, gateway.s_addr); } #ifdef DEBUG logprintf("wrote %d: dst = %x, gateway = %x\n", nb, dst.s_addr, gateway.s_addr);