From nobody Sun Dec 15 02:21:29 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 4Y9mzG1mfMz5h7FQ; Sun, 15 Dec 2024 02:21:30 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y9mzG0cY6z4nqs; Sun, 15 Dec 2024 02:21:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734229290; 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=aH+bWUHKPue+XSNoHNLFaz9usYU2+lkahRMR+4cGZ+g=; b=Gy6R9KZspI0+3XllPE2DlI5Xe5+2O//wUUt/fXOrUbx2a+OaePQgtF8W5q3k2eTiaTT/TS jrX0DIn0hk4FrmXBUCB0LQDCcGOlPqQPMsABPBDORknIdDcbxgBSkkTvCgFovsOacAaKV/ R4leezFbCYh2hOqM5uLqJIDYmYNEbMZGJ6cLeCMwWPNu9yW7DQvAckXpixQnj/Y42CwtPP wbxU1ETIS42z00WQix0yW+D+n/yCuJ3hcM02LdHHpk3Dp/s6e+JQQz9kK6708IW9letTXQ FYV4cO1Njx5xh60DlvcQ1CHTBvhwWUMCY2kLBYUtZVP7WD2vFh0SV/R1xsZ3sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734229290; 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=aH+bWUHKPue+XSNoHNLFaz9usYU2+lkahRMR+4cGZ+g=; b=lsdAxIZ6E4qaopY1V2u1yVl3YiRXMe5hKhra+97KHo9ppToeu5uOtmjSaqnwdMQZoioJOx qCBtIkiXUxGn8fk8g/OMlou2qZwJdNBx8xuJ0hhTswPWJeta8MYoIHMhmRGSL1VscieXqS KyvzP6d0hiKXmsMv0HKnD2uUpfXmAwTrIdD1vJRc4dI+bLKxEJOcncJOWuwQ7e/w/HgkHD UJ06I/tMccelh5Zyr3CQWrxs1+XqmS/YMeRpKfcdlqcBHM/jJsRSjhKct4nWUzhEr/2cPm jt4LEFCLtvWmh3WvPQjoYoCUJukhRh7lVIvhVEerLMiEWg7tOKvkaZg5uKheSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734229290; a=rsa-sha256; cv=none; b=dVQAkQWB7romR5nbhg3nfytxfZrAWrsNS3C25Pz/MUy4JTdwgNddL5AwMuaoNTfgkoSfA5 5tyyXzCUjidLzGgPXOXjKWlcCiaddNSjzorsEWz80skW5WAPWWtRYBfDN9vDAOZoAAOV2S FC4ZFY5tMFZEvNg0p7g1QMoFcBHMbSBY6rroZSBW7C5/j/XkfvsNhNyHBTrhtEUGIdHLnN qj4GTaUBNWzkNLJ/acGUxu/+Ts3POK0LZit6pACmrpwKD4SIyfBKWBGJDm2siiog8YCfkR MHiS0YED/Vbz3GRwtS9jxB+E5zwFkaLIyssSnV7XUaHAxyDc2razJ4oMC28X+g== 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 4Y9mzG0Cm2zpWR; Sun, 15 Dec 2024 02:21:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BF2LTEo081603; Sun, 15 Dec 2024 02:21:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BF2LTOt081600; Sun, 15 Dec 2024 02:21:29 GMT (envelope-from git) Date: Sun, 15 Dec 2024 02:21:29 GMT Message-Id: <202412150221.4BF2LTOt081600@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 3021a0bcb042 - stable/14 - init_main: Fix logging of the SYSINIT process 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3021a0bcb0424a58011a9cda076e0696c9de2bf7 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=3021a0bcb0424a58011a9cda076e0696c9de2bf7 commit 3021a0bcb0424a58011a9cda076e0696c9de2bf7 Author: Zhenlei Huang AuthorDate: 2024-12-06 13:47:06 +0000 Commit: Zhenlei Huang CommitDate: 2024-12-15 02:20:53 +0000 init_main: Fix logging of the SYSINIT process The current subsystem, aka `sip->subsystem`, should be logged, rather than the last one. Reviewed by: mhorne Fixes: 5a8fceb3bd9f boottrace: trace annotations for startup and shutdown MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47903 (cherry picked from commit 5997b1933142116041af7549eb2f450b4714b823) --- sys/kern/init_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 3c907da945b2..23a1eb944b7b 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -302,7 +302,7 @@ mi_startup(void) #if defined(VERBOSE_SYSINIT) if (sip->subsystem > last && verbose_sysinit != 0) { verbose = 1; - printf("subsystem %x\n", last); + printf("subsystem %x\n", sip->subsystem); } if (verbose) { #if defined(DDB)