git: 0cd2d88d8d0f - main - carp: use nd6log() macro to log debug messages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Jun 2023 10:30:24 UTC
The branch main has been updated by ae:
URL: https://cgit.FreeBSD.org/src/commit/?id=0cd2d88d8d0f808d331a0a04743b98cb082d653e
commit 0cd2d88d8d0f808d331a0a04743b98cb082d653e
Author: Andrey V. Elsukov <ae@FreeBSD.org>
AuthorDate: 2023-06-28 10:27:37 +0000
Commit: Andrey V. Elsukov <ae@FreeBSD.org>
CommitDate: 2023-06-28 10:27:37 +0000
carp: use nd6log() macro to log debug messages
Obtained from: Yandex LLC
Sponsored by: Yandex LLC
---
sys/netinet6/nd6_nbr.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index a4fb5f75fa93..00bb19f9ba39 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -517,9 +517,9 @@ nd6_ns_output_fib(struct ifnet *ifp, const struct in6_addr *saddr6,
*/
if (ifa != NULL && ifa->ifa_carp != NULL &&
!(*carp_master_p)(ifa)) {
- log(LOG_DEBUG,
+ nd6log((LOG_DEBUG,
"nd6_ns_output: NS from BACKUP CARP address %s\n",
- ip6_sprintf(ip6buf, &ip6->ip6_src));
+ ip6_sprintf(ip6buf, &ip6->ip6_src)));
ifa_free(ifa);
goto bad;
}
@@ -742,9 +742,9 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
* the CARP master.
*/
if (!(*carp_master_p)(ifa)) {
- log(LOG_DEBUG,
+ nd6log((LOG_DEBUG,
"nd6_na_input: NA for BACKUP CARP address %s\n",
- ip6_sprintf(ip6bufs, &taddr6));
+ ip6_sprintf(ip6bufs, &taddr6)));
ifa_free(ifa);
goto freeit;
}