git: c90bff3fa7c1 - main - netlink: fix debugging on 32-bit platforms

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Sat, 01 Oct 2022 19:03:56 UTC
The branch main has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=c90bff3fa7c1c3ba3773759d243aad7b29b643a3

commit c90bff3fa7c1c3ba3773759d243aad7b29b643a3
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-10-01 19:03:28 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2022-10-01 19:03:35 +0000

    netlink: fix debugging on 32-bit platforms
---
 sys/netlink/netlink_domain.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys/netlink/netlink_domain.c b/sys/netlink/netlink_domain.c
index 159dfd03724d..032fded987df 100644
--- a/sys/netlink/netlink_domain.c
+++ b/sys/netlink/netlink_domain.c
@@ -98,8 +98,8 @@ static void
 nl_update_groups_locked(struct nlpcb *nlp, uint64_t nl_groups)
 {
 	/* Update group mask */
-	NL_LOG(LOG_DEBUG2, "socket %p, groups 0x%lX -> 0x%lX",
-	    nlp->nl_socket, nlp->nl_groups, nl_groups);
+	NL_LOG(LOG_DEBUG2, "socket %p, groups 0x%X -> 0x%X",
+	    nlp->nl_socket, (uint32_t)nlp->nl_groups, (uint32_t)nl_groups);
 	nlp->nl_groups = nl_groups;
 }
 
@@ -577,7 +577,8 @@ nl_ctloutput(struct socket *so, struct sockopt *sopt)
 				break;
 			}
 			group_mask = (uint64_t)1 << (optval - 1);
-			NL_LOG(LOG_DEBUG2, "ADD/DEL group %d mask (%lX)", optval, group_mask);
+			NL_LOG(LOG_DEBUG2, "ADD/DEL group %d mask (%X)",
+			    (uint32_t)optval, (uint32_t)group_mask);
 
 			NLCTL_WLOCK(ctl);
 			if (sopt->sopt_name == NETLINK_ADD_MEMBERSHIP)