fix(kernel): improve error message for failed init program startup

This commit is contained in:
EnderIce2 2025-04-12 04:33:10 +00:00
parent 3315d79742
commit 1f646d6826
Signed by: enderice2
GPG Key ID: FEB6B8A8507BA62E

View File

@ -148,8 +148,7 @@ void KernelMainThread()
int tid = SpawnInit(); int tid = SpawnInit();
if (tid < 0) if (tid < 0)
{ {
KPrint("\x1b[1;37;41mFailed to start %s! Error: %s (%d)", KPrint("\x1b[1;37;41mFailed to start init program! Error: %s (%d)", strerror(tid), tid);
Config.InitPath, strerror(tid), tid);
goto Exit; goto Exit;
} }