From nobody Fri May 10 19:20:46 2024 X-Original-To: dev-commits-src-all@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 4VbdyQ51b5z5KGtq; Fri, 10 May 2024 19:20:46 +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 4VbdyQ4Yhxz4NZV; Fri, 10 May 2024 19:20:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715368846; 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=I6G3wYylCFpfAC2/5Woxn1dxi50yLnygfJg2K9jTvdg=; b=jrwPc063oF35lx20e5nqhG5B0vZdSI+MERnbpdpSlfyHOiBnUezluH72/OVtrHwypyyN+J 0BA+KXRSA13xGO9u+5xgzf8a6qfUA+klYtW5QV57mCcO8WnMcF/va1sqlYVTeJs3/KdUaO OrCnRo6cwwG6K7oEgDbEUUIgBFh0sK5MQrFlM8DCoqZz+03tNEdlfgOyHZcUMNI/2bCt5m 6hl7Hhasy3TxoA1ZBopqF+jVbV1Tk1xpUwVpNy8EaALgswgjhYHccwiRwSsHnmnvNQpk11 66WOexcBJEmAseCjvPmcQwGqrRd3ySa8oeRDt4UVUBQgUwppd4HwRZH9zgjQAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715368846; a=rsa-sha256; cv=none; b=vGRTJ+3Q0sCCxnHZfH7au363P7U2ZYJYlPwVagpKrfh6b05FAY5ow5En9OQSWbezfgCxCm Z+mRTyT5Zv+FBBUJ0N4ixbMyJYMNAOpNj9gx1+xdZRQQKbUAepeOZ6vxY5Uh7XUpfik7X8 WSbkfCiwr3BKgNdTsC605tghSeKAhyFefODjkGEEJhuk40JD6tuJaHWZfydm17FCDDvgqN hezXcs74DyN1HAaE8hUPMeSCnMa5Y9ENwrK7V2XIPraVewJSAALnHZ+cNsOP70/yj+Chmt xg3Bkv87owN4X/kEdg2q+q+NYFGl+O4AvuBXKPaJpu1nt1UWtS8WGxxc6UZwsA== 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=1715368846; 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=I6G3wYylCFpfAC2/5Woxn1dxi50yLnygfJg2K9jTvdg=; b=GPAdRdYAEAwsaVP4v74m8GoeR38EsWyvFmS1baJ4+AZSGHIgwYh0Zoo3inlEgCL2Mx2o/L I/JuILv3N+MGv/yld2HeYWGwCI9P93UNKvPZ7G7/ZxPeILUtPgwHPA5oIayrMNSjJumgCs uLpHWhcqukA0eshWIso0+m4CwmieBDQ+2PrBhz9K24hIey1KYgJJqtvLzL2F59GDuYCrL/ AzCcUdIVSH08YEKZ7eqqCdG+zxn5IG8c4nBKGyCdxM2I03YkUlZgCRyh7hZX1Stk27HMVD N3/BrPRDenrwi2HQXWj+mgOzOaSI61AF9zs/JDm2o+Zc9BmipXhVwCNTyklkTg== 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 4VbdyQ48zWzq75; Fri, 10 May 2024 19:20:46 +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 44AJKkjg087560; Fri, 10 May 2024 19:20:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44AJKkLH087557; Fri, 10 May 2024 19:20:46 GMT (envelope-from git) Date: Fri, 10 May 2024 19:20:46 GMT Message-Id: <202405101920.44AJKkLH087557@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 0b272e0926b3 - main - madt: print CPU APIC ID as signed int List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0b272e0926b3c4b1961131119e22ed5791be7230 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=0b272e0926b3c4b1961131119e22ed5791be7230 commit 0b272e0926b3c4b1961131119e22ed5791be7230 Author: Ed Maste AuthorDate: 2024-05-10 18:57:22 +0000 Commit: Ed Maste CommitDate: 2024-05-10 19:20:40 +0000 madt: print CPU APIC ID as signed int Instead of printing something like "MADT: Found CPU APIC ID 4294967295 ACPI ID 512: disabled" print the APIC ID as a singed int for a more user-friendly -1. Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45158 --- sys/x86/acpica/madt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/x86/acpica/madt.c b/sys/x86/acpica/madt.c index c6358ad7e847..a593028ffb5a 100644 --- a/sys/x86/acpica/madt.c +++ b/sys/x86/acpica/madt.c @@ -368,8 +368,8 @@ madt_add_cpu(u_int acpi_id, u_int apic_id, u_int flags) * MP code figure out which CPU is the BSP on its own. */ if (bootverbose) - printf("MADT: Found CPU APIC ID %u ACPI ID %u: %s\n", - apic_id, acpi_id, flags & ACPI_MADT_ENABLED ? + printf("MADT: Found CPU APIC ID %d ACPI ID %u: %s\n", + (int)apic_id, acpi_id, flags & ACPI_MADT_ENABLED ? "enabled" : "disabled"); if (!(flags & ACPI_MADT_ENABLED)) return;