From a00b22129f335ebb8e403e2553790bf96dea7ac5 Mon Sep 17 00:00:00 2001 From: bluhm Date: Tue, 10 Sep 2024 14:52:42 +0000 Subject: [PATCH] Fix build of m_print_chain() on sparc64. Use %zu to print mbuf MHLEN and MLEN in ddb, otherwise gcc complains. found by claudio@ --- sys/kern/uipc_mbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 8acda07c2ce..34ce9390635 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.293 2024/09/09 11:27:03 bluhm Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.294 2024/09/10 14:52:42 bluhm Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -1569,7 +1569,7 @@ m_print_chain(void *v, int deep, if (m->m_flags & M_EXT) (*pr)(", clsize %u", m->m_ext.ext_size); else - (*pr)(", size %u", + (*pr)(", size %zu", m->m_flags & M_PKTHDR ? MHLEN : MLEN); (*pr)("\n"); indent = deep ? "|+-" : " +-"; -- 2.20.1