🎨 记录操作系统平台

This commit is contained in:
Liang Ding 2023-02-10 21:39:24 +08:00
parent d316e4abc3
commit 235d940cad
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 72 additions and 5 deletions

View file

@ -49,6 +49,7 @@ func logBootInfo() {
logging.LogInfof("kernel is booting:\n"+
" * ver [%s]\n"+
" * arch [%s]\n"+
" * os [%s] "+
" * pid [%d]\n"+
" * runtime mode [%s]\n"+
" * working directory [%s]\n"+
@ -56,7 +57,7 @@ func logBootInfo() {
" * container [%s]\n"+
" * database [ver=%s]\n"+
" * workspace directory [%s]",
Ver, runtime.GOARCH, os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir)
Ver, runtime.GOARCH, GetOSPlatform(), os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir)
}
func IsMutexLocked(m *sync.Mutex) bool {