From nobody Fri Dec 06 13:48:24 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 4Y4Xf10BYWz5gJ0J; Fri, 06 Dec 2024 13:48:25 +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 4Y4Xf06ts4z45Hw; Fri, 6 Dec 2024 13:48:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733492905; 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=Ot6c2s7xUmympdz3hiRAS3JmwH/i9apwBwvOvCGpE8Q=; b=I6bXZ9XT9XmdCpvjicaE5I4b8jHm6BO5kLpviz85G1Fd2K2szQ2V6svISFY46v1G2KgGJh W6ednDAnQ+VV0dHI4u4wXH031HSs6AGA0fBR2CKBo3WTQQOK5bQ318g8aiAkR2cMqtaBR7 GCXWRskodMw3sfEbPXPwyyzWwMp5Jj5IUHOg1b2JfxljWaEUuCIFKmqcGedNbmNisfWqTb KNVtkwdvSLsj3WZaS7Lpmk2ehzNLnKXIOG0MhFEPOQUUosOW4xTdP0MDDIRKtdafqrnm5W FQZfWAoOZtMoRAXOiUWkBtp+kn/gM5cmsBU9Ol2PuKjtItWs5Vh8APB9Js1xKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733492905; 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=Ot6c2s7xUmympdz3hiRAS3JmwH/i9apwBwvOvCGpE8Q=; b=GDYiKcPCHTJaiXtX/QsNxGui0zHmt8hBa6r6YEIBhblVcovxBG3q+llai3LiF8U/iXtlSV g+ECr7sqrUgDJAhXDi/XhIz9PT1NE3KxWGNfOVolNSy184naoxIAus8XgyLrkULZktKJaF iV1Nu1yitxn0uGn0J04suYj5cbQqvOAABcXPcgdyHlhubHla4mtjvEkEj/YvLh3M6Xbo9L LUL8HXsC09LtK7s/1pSkcn5XVQ/4bnxWTifS3fOCvJ9EnKQ9bCRvrIi5ULLGRgICFu4noG 7OKvdM7FwXoEA8fp+JFuah18ohD1tr7ZIq0wXPDI12NozYFi1w/3pMV2T3Cy9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733492905; a=rsa-sha256; cv=none; b=HbA5LAmuDXmT7AtDZMuHZYtfDIwMLfXpuqefomX5p8IJgGO6wpiC1Q0erK3dPfdp5MgppW nBkasbyx5Oa+0q9/ReZh+eTeFtd4XiAGKKqEhLisHseW2UjCOgI0dzG5XBZRzQfUF6BzUS sdJUw31aVA3WAy1PPTc/QjeonlMcZS2Li+mKcamY+IQx+G8MF9yUYbYF0ZUE8F1TvhzlIl PngZJ9tWx7kDks7d+x7lhsH9kc180tnMSxEELLG+qzVINW3F5NhxaWlxPln4OboZhSCspm 7Zfm2WVyKvxPDLINnON1ZJHgKReB48FKCC6OU8JnoSfGw2mDo3V00U5uRmAjuQ== 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 4Y4Xf06WZ9zgR4; Fri, 6 Dec 2024 13:48:24 +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 4B6DmO5d002230; Fri, 6 Dec 2024 13:48:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B6DmOXn002227; Fri, 6 Dec 2024 13:48:24 GMT (envelope-from git) Date: Fri, 6 Dec 2024 13:48:24 GMT Message-Id: <202412061348.4B6DmOXn002227@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 5997b1933142 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 5997b1933142116041af7549eb2f450b4714b823 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=5997b1933142116041af7549eb2f450b4714b823 commit 5997b1933142116041af7549eb2f450b4714b823 Author: Zhenlei Huang AuthorDate: 2024-12-06 13:47:06 +0000 Commit: Zhenlei Huang CommitDate: 2024-12-06 13:47:06 +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 --- 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 d6056d863b77..36ce44b988be 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -298,7 +298,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)