This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
NET - clean up log messages
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: Tue, 25 May 2004 07:08:55 -0600
- Subject: NET - clean up log messages
- Organization: MLB Associates
A number of log messages had extra ":" in the parameter list which
caused incorrect outputs.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: net/bsd_tcpip/current/ChangeLog
===================================================================
RCS file: /home/gthomas/my_cvs/develop/ecos/packages/net/bsd_tcpip/current/ChangeLog,v
retrieving revision 1.17
diff -u -5 -p -r1.17 ChangeLog
--- net/bsd_tcpip/current/ChangeLog 28 Apr 2004 15:15:51 -0000 1.17
+++ net/bsd_tcpip/current/ChangeLog 25 May 2004 13:07:19 -0000
@@ -1,5 +1,10 @@
+2004-05-25 Gary Thomas <gary@mlbassoc.com>
+
+ * src/sys/netinet/if_ether.c: Clean up some log messages - remove
+ extraneous ":" which caused incorrect printouts.
+
2004-03-30 Horst Kronstorfer <horst.kronstorfer@frequentis.com>
* src/sys/kern/uipc_mbuf.c
* src/ecos/support.c
* include/sys/mbuf.h: Avoid blocking alloc from (empty) mbuf pool.
Index: net/bsd_tcpip/current/src/sys/netinet/if_ether.c
===================================================================
RCS file: /home/gthomas/my_cvs/develop/ecos/packages/net/bsd_tcpip/current/src/sys/netinet/if_ether.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 if_ether.c
--- net/bsd_tcpip/current/src/sys/netinet/if_ether.c 1 Aug 2003 17:00:51 -0000 1.2
+++ net/bsd_tcpip/current/src/sys/netinet/if_ether.c 25 May 2004 13:07:19 -0000
@@ -589,11 +589,11 @@ in_arpinput(m)
return;
}
if (isaddr.s_addr == myaddr.s_addr) {
log(LOG_ERR,
"arp: %6D is using my IP address %s!\n",
- ea->arp_sha, ":", inet_ntoa(isaddr));
+ ea->arp_sha, inet_ntoa(isaddr));
itaddr = myaddr;
goto reply;
}
la = arplookup(isaddr.s_addr, itaddr.s_addr == myaddr.s_addr, 0);
if (la && (rt = la->la_rt) && (sdl = SDL(rt->rt_gateway))) {
@@ -601,25 +601,25 @@ in_arpinput(m)
if (!BRIDGE_TEST && rt->rt_ifp != &ac->ac_if) {
if (log_arp_wrong_iface)
log(LOG_ERR, "arp: %s is on %s%d but got reply from %6D on %s%d\n",
inet_ntoa(isaddr),
rt->rt_ifp->if_name, rt->rt_ifp->if_unit,
- ea->arp_sha, ":",
+ ea->arp_sha,
ac->ac_if.if_name, ac->ac_if.if_unit);
goto reply;
}
if (sdl->sdl_alen &&
bcmp((caddr_t)ea->arp_sha, LLADDR(sdl), sdl->sdl_alen)) {
if (rt->rt_expire)
log(LOG_INFO, "arp: %s moved from %6D to %6D on %s%d\n",
- inet_ntoa(isaddr), (u_char *)LLADDR(sdl), ":",
- ea->arp_sha, ":",
+ inet_ntoa(isaddr), (u_char *)LLADDR(sdl),
+ ea->arp_sha,
ac->ac_if.if_name, ac->ac_if.if_unit);
else {
log(LOG_ERR,
"arp: %6D attempts to modify permanent entry for %s on %s%d\n",
- ea->arp_sha, ":", inet_ntoa(isaddr),
+ ea->arp_sha, inet_ntoa(isaddr),
ac->ac_if.if_name, ac->ac_if.if_unit);
goto reply;
}
}
(void)memcpy(LLADDR(sdl), ea->arp_sha, sizeof(ea->arp_sha));