git: 3021a0bcb042 - stable/14 - init_main: Fix logging of the SYSINIT process
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 Dec 2024 02:21:29 UTC
The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=3021a0bcb0424a58011a9cda076e0696c9de2bf7 commit 3021a0bcb0424a58011a9cda076e0696c9de2bf7 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2024-12-06 13:47:06 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> 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)