From nobody Wed May 22 02:20:30 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VkZlg0M12z5LLWR; Wed, 22 May 2024 02:20:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VkZlf33n0z3wvd; Wed, 22 May 2024 02:20:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716344430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u0gLqwFYfGEU1/XwFz1n7grKOE7AckNrvihkMdKTXe8=; b=mc07SNwLdln2OatiWTbeoFLwfNqMaEAc6HWzxpfwGUxJko+wKf2DSjWX9qvSZZzV8BWNu0 c51/KtLs8c/vXDYI1s/JGf6qwU+H+F9YTHq+dIq+O/gU5ZM7AO15tkkfB91GeWoxk4j5Zi gVTXrv7eazMJy9+ZdgVHBTEwfpARo3UmF931+pXy/Lrg4tuWqdUI2R+HgawAiLzhy4RQUZ qroxy/+d9/LRXEXKn31WdlAcCj4ZGRZ/E84BShTrsRCM2q4N/cdpoaDPHz2N0sXn0w9TDR wipLWzyRm+2dNqTjphTT+fJH0M4bvGSLTqN9DZhg0pt3QH1HCbBDcW5oVVVPhA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716344430; a=rsa-sha256; cv=none; b=XuQikzonLn2Bu64pi3o4OSTjnOBicSbipvUHy/jEFc3hm2imgVOp1mvdxPGk2TdXOTRcEI WY+t+qleqk9wVLE3WmZQiLVQxfFXVDFPdc0n4TPmm2kmgfFe1chBq3y1UOaGaJARDifJGa 7ueDOvU669fZ+V2bDr3JJJNbYRbiXy+YaCY0jcwcHwHZYx1mgAVxx8AiodecBDYFHtVJ7Z dO4RNiiBMzS8pCakIphe4EV7Kuzirg7fZ7K3IxpS6/P+ltLzo6AGgXwX1P8Ub+kKPxUy7E r/YJSmhj3E6TUq+dKs0sJucM3KxKlGpgRHn3lIbdr23KgTsD/hPdXiVje/H0Jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716344430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u0gLqwFYfGEU1/XwFz1n7grKOE7AckNrvihkMdKTXe8=; b=psF0nSl8ANWS3wCFDXUvroGTxReAStegbTzmCEpDsEkkCxmSC1evLsFFqgTKyXocafx5et h+R7enSlYUmHeyim/2+F3XbwPmrAGEJ4eH1F+4DHuUULtifpVwMtYoAfuy/j0rbOLTV3+n 1rblnT/E7Ki/5aHyBqP+0ED7YdfeqkEb1NY8aVFujQH+a2TawDcIQzXaC2x7oIK++Zr3la BIOW6Lz9UPn2JC8ebppRpl/BE69QjB/Nd+7Asjc9JyQ+v9RSz2/LGEZAPmrdfwI1FIr6Ki BggpMjq0lcw2WRmOXC59oMxlW8GFJkKb248DYb/K+vr5FwAV5w2YXauK7O9z7Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VkZlf2gJtznKG; Wed, 22 May 2024 02:20:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44M2KU9e077216; Wed, 22 May 2024 02:20:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44M2KUBr077213; Wed, 22 May 2024 02:20:30 GMT (envelope-from git) Date: Wed, 22 May 2024 02:20:30 GMT Message-Id: <202405220220.44M2KUBr077213@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 208f11e8063a - main - linprocfs: use %z for size_t arguments List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 208f11e8063af7b52bddd4e7a179906e7e8c7ddf Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=208f11e8063af7b52bddd4e7a179906e7e8c7ddf commit 208f11e8063af7b52bddd4e7a179906e7e8c7ddf Author: Warner Losh AuthorDate: 2024-05-22 02:01:58 +0000 Commit: Warner Losh CommitDate: 2024-05-22 02:03:08 +0000 linprocfs: use %z for size_t arguments 64-bit doesn't care or give a warning, but i386 compile complains (rightly) that these are size_t and need a %z modifier. Fixes: 25a04527b706 Sponsored by: Netflix --- sys/compat/linprocfs/linprocfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index bfa2074a78d3..617eb122291c 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -2115,7 +2115,7 @@ linprocfs_dosysvipc_msg(PFS_FILL_ARGS) if (msqids[id].u.msg_qbytes == 0) continue; sbuf_printf(sb, - "%10d %10lu %4o %10lu %10lu %5u %5u %5u %5u %5u %5u %jd %jd %jd\n", + "%10d %10zu %4o %10lu %10lu %5u %5u %5u %5u %5u %5u %jd %jd %jd\n", (int)msqids[id].u.msg_perm.key, IXSEQ_TO_IPCID(id, msqids[id].u.msg_perm), msqids[id].u.msg_perm.mode, @@ -2158,7 +2158,7 @@ linprocfs_dosysvipc_sem(PFS_FILL_ARGS) if ((semids[id].u.sem_perm.mode & SEM_ALLOC) == 0) continue; sbuf_printf(sb, - "%10d %10lu %4o %10u %5u %5u %5u %5u %jd %jd\n", + "%10d %10zu %4o %10u %5u %5u %5u %5u %jd %jd\n", (int)semids[id].u.sem_perm.key, IXSEQ_TO_IPCID(id, semids[id].u.sem_perm), semids[id].u.sem_perm.mode, @@ -2198,7 +2198,7 @@ linprocfs_dosysvipc_shm(PFS_FILL_ARGS) if ((shmids[id].u.shm_perm.mode & SHMSEG_ALLOCATED) == 0) continue; sbuf_printf(sb, - "%10d %10lu %4o %21zu %5u %5u %5u %5u %5u %5u %5u %jd %jd %jd %21d %21d\n", + "%10d %10zu %4o %21zu %5u %5u %5u %5u %5u %5u %5u %jd %jd %jd %21d %21d\n", (int)shmids[id].u.shm_perm.key, IXSEQ_TO_IPCID(id, shmids[id].u.shm_perm), shmids[id].u.shm_perm.mode,