git: 5997b1933142 - main - init_main: Fix logging of the SYSINIT process
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Dec 2024 13:48:24 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=5997b1933142116041af7549eb2f450b4714b823
commit 5997b1933142116041af7549eb2f450b4714b823
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-12-06 13:47:06 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
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)