From nobody Fri Mar 17 05:48:35 2023 X-Original-To: dev-commits-src-branches@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 4PdCq82H53z407Wq; Fri, 17 Mar 2023 05:48:36 +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 4PdCq81YQ3z40y2; Fri, 17 Mar 2023 05:48:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679032116; 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=XdkmOEnAVcbcpdy1u+XKsvGihUoN2HSDlgCFwf+sZDk=; b=P0eHX51os68RP2gIcSAA1oySMb9gdT9j90rOJH9QLx9lqPQsphOflCglaB1LLgSWju4tUb LyHvXwPE8nlrgavkCWiCypsqMP3fQUnN3NkmLx/8rrkDxHfvApjtcsAm/Da8JFAOTXRU4L wEy1jbLuIKCii2xZCfWe5UXG6LFp5MacyFAJDuSbxdlzYKIJwCL07/jx0ZaSRC69MkukMW bPEUUNmK/Fa7FgIavgi6N9AzSXVxb9n0UtsnbCacyUV1chN20NCLB+koRZW6eBPrIni3ip SkJrJYqrgyp1273nMzlK9DYJlVmvTqKIjemfPQ8z9iCxb4Hk8hqbfKZszhtxlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679032116; 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=XdkmOEnAVcbcpdy1u+XKsvGihUoN2HSDlgCFwf+sZDk=; b=ojbt3+M9pkrn5eJufj/4lcBPOpZAsp4BpXscTH0KLK373ScTVsJn7hUG5lpzLF5HMlV6sf yOT4VmMkEgsqy/eFjt0S/jUpGKW8B8vpMoTCUvAF4pdmTAYbu/DM6IIHgR1N1smGvjkAk2 3Ca7gdmM181QlmTHLUAKBB43xzzSGPUzbg27kNllb//z4d5FvXsEt+72SrRHqxUQAOq18t BXkaUzDDRm0nPmyFETuy6cfvtohwiV3EffvNoaP+pnCoD0foG+/dNtMBmcWi4bE9mk+Rbe OevrdQtRQqDG7UCTUnMYy/st3DSVtwEQ2ZcBAdk9IXsT8Ze7OI89kOqqTBFoVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679032116; a=rsa-sha256; cv=none; b=NC8vp9nav0BBjL0PB4QKfQMavEjOKVArTxP/g5vJ90+vrc/Yw3h86UovPmtbYBLy+X36mi WAmeAgV+54rJy+l/MNpvofOdcqqhf1t+JQxad4gD5s5UQhqQdNcgmkp+aNfKuKSSXlJ85z DQ/yrn5IUCtIV4gGBVn/JYAxp1B+ArH/+N91ssAuLgKfSy0fVsV+pVhfHixvzT0HqEIReg 9vsdlqynDlP5WxbiDn/yZfVKXld4hI6VzMBM4h8LZJGh2AH69DvuNreyv9e819ZbZdLwiF QxIUnQ3A6VEK13NJZ6hJr7r54aAPe818lEXnrE5sVVHvokHuvOCKx43EJa9dJA== 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 4PdCq80XCBz1ClV; Fri, 17 Mar 2023 05:48:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32H5mZmm006267; Fri, 17 Mar 2023 05:48:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32H5mZ67006266; Fri, 17 Mar 2023 05:48:35 GMT (envelope-from git) Date: Fri, 17 Mar 2023 05:48:35 GMT Message-Id: <202303170548.32H5mZ67006266@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 7c0cbba1d51d - stable/13 - kern: physmem: don't truncate addresses in DEBUG output List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7c0cbba1d51d87dacb98806a2cb026c8733615ed Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=7c0cbba1d51d87dacb98806a2cb026c8733615ed commit 7c0cbba1d51d87dacb98806a2cb026c8733615ed Author: Kyle Evans AuthorDate: 2023-02-20 18:54:00 +0000 Commit: Kyle Evans CommitDate: 2023-03-17 05:01:36 +0000 kern: physmem: don't truncate addresses in DEBUG output Make it consistent with the above region printing, otherwise it appears to be somewhat confusing. (cherry picked from commit cd73914b01a1f2300e587f802383cc563f2e7103) (cherry picked from commit 7b5cb32fca26428b8c0df98f9c58444557f808ae) (cherry picked from commit c32946d8bee0d82042165c5d78b4d339d1268a2a) --- sys/kern/subr_physmem.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/kern/subr_physmem.c b/sys/kern/subr_physmem.c index 2c7837019ea2..7cb45621a155 100644 --- a/sys/kern/subr_physmem.c +++ b/sys/kern/subr_physmem.c @@ -116,7 +116,7 @@ panic(const char *fmt, ...) * db_printf). */ static void -physmem_dump_tables(int (*prfunc)(const char *, ...)) +physmem_dump_tables(int (*prfunc)(const char *, ...) __printflike(1, 2)) { size_t i; int flags; @@ -145,10 +145,12 @@ physmem_dump_tables(int (*prfunc)(const char *, ...)) #ifdef DEBUG prfunc("Avail lists:\n"); for (i = 0; phys_avail[i] != 0; ++i) { - prfunc(" phys_avail[%d] 0x%08x\n", i, phys_avail[i]); + prfunc(" phys_avail[%zu] 0x%08jx\n", i, + (uintmax_t)phys_avail[i]); } for (i = 0; dump_avail[i] != 0; ++i) { - prfunc(" dump_avail[%d] 0x%08x\n", i, dump_avail[i]); + prfunc(" dump_avail[%zu] 0x%08jx\n", i, + (uintmax_t)dump_avail[i]); } #endif }