🎨 记录操作系统平台

This commit is contained in:
Liang Ding 2023-02-10 22:44:20 +08:00
parent 08641595ae
commit a6d945a9a1
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 11 additions and 8 deletions

View file

@ -45,11 +45,14 @@ const (
// IsExiting 是否正在退出程序。
var IsExiting = false
// MobileOSVer 移动端操作系统版本。
var MobileOSVer string
func logBootInfo() {
plat, platVer := GetOSPlatform()
osInfo := plat
if "" != platVer {
osInfo += "/" + platVer
osInfo += " " + platVer
}
logging.LogInfof("kernel is booting:\n"+
" * ver [%s]\n"+