Date: Fri, 23 Oct 2009 18:27:35 +0000 (UTC) From: Qing Li <qingli@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r198418 - in head/sys: netinet netinet6 Message-ID: <200910231827.n9NIRZ9D068779@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: qingli Date: Fri Oct 23 18:27:34 2009 New Revision: 198418 URL: http://svn.freebsd.org/changeset/base/198418 Log: Use the correct option name in the preprocessor command to enable or disable diagnostic messages. Reviewed by: ru MFC after: 3 days Modified: head/sys/netinet/if_ether.c head/sys/netinet/in.c head/sys/netinet6/in6.c Modified: head/sys/netinet/if_ether.c ============================================================================== --- head/sys/netinet/if_ether.c Fri Oct 23 17:26:29 2009 (r198417) +++ head/sys/netinet/if_ether.c Fri Oct 23 18:27:34 2009 (r198418) @@ -180,7 +180,7 @@ arptimer(void *arg) (void) llentry_free(lle); ARPSTAT_INC(timeouts); } -#ifdef DIAGNOSTICS +#ifdef DIAGNOSTIC else { struct sockaddr *l3addr = L3_ADDR(lle); log(LOG_INFO, "arptimer issue: %p, IPv4 address: \"%s\"\n", lle, Modified: head/sys/netinet/in.c ============================================================================== --- head/sys/netinet/in.c Fri Oct 23 17:26:29 2009 (r198417) +++ head/sys/netinet/in.c Fri Oct 23 18:27:34 2009 (r198418) @@ -1327,7 +1327,7 @@ in_lltable_rtcheck(struct ifnet *ifp, co /* XXX rtalloc1 should take a const param */ rt = rtalloc1(__DECONST(struct sockaddr *, l3addr), 0, 0); if (rt == NULL || (rt->rt_flags & RTF_GATEWAY) || rt->rt_ifp != ifp) { -#ifdef DIAGNOSTICS +#ifdef DIAGNOSTIC log(LOG_INFO, "IPv4 address: \"%s\" is not on the network\n", inet_ntoa(((const struct sockaddr_in *)l3addr)->sin_addr)); #endif @@ -1366,7 +1366,7 @@ in_lltable_lookup(struct lltable *llt, u break; } if (lle == NULL) { -#ifdef DIAGNOSTICS +#ifdef DIAGNOSTIC if (flags & LLE_DELETE) log(LOG_INFO, "interface address is missing from cache = %p in delete\n", lle); #endif @@ -1401,7 +1401,7 @@ in_lltable_lookup(struct lltable *llt, u lle->la_flags = LLE_DELETED; EVENTHANDLER_INVOKE(arp_update_event, lle); LLE_WUNLOCK(lle); -#ifdef DIAGNOSTICS +#ifdef DIAGNOSTIC log(LOG_INFO, "ifaddr cache = %p is deleted\n", lle); #endif } Modified: head/sys/netinet6/in6.c ============================================================================== --- head/sys/netinet6/in6.c Fri Oct 23 17:26:29 2009 (r198417) +++ head/sys/netinet6/in6.c Fri Oct 23 18:27:34 2009 (r198418) @@ -2437,7 +2437,7 @@ in6_lltable_lookup(struct lltable *llt, LLE_WLOCK(lle); lle->la_flags = LLE_DELETED; LLE_WUNLOCK(lle); -#ifdef DIAGNOSTICS +#ifdef DIAGNOSTIC log(LOG_INFO, "ifaddr cache = %p is deleted\n", lle); #endif }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910231827.n9NIRZ9D068779>