kernel: Log the release name and build date in the boot log
This commit is contained in:
parent
01359af288
commit
ad3f3bf4db
@ -32,7 +32,7 @@ void reap_thread()
|
||||
|
||||
[[noreturn]] void init()
|
||||
{
|
||||
kinfoln("Starting Moon %s, built on %s at %s", MOON_VERSION, __DATE__, __TIME__);
|
||||
kinfoln("Starting Moon %s %s", MOON_VERSION, MOON_RELEASE);
|
||||
|
||||
// Default hostname if nobody from userspace changes it
|
||||
set_host_name("moon"_sv);
|
||||
|
@ -25,7 +25,6 @@ Result<u64> sys_uname(Registers*, SyscallArgs args)
|
||||
strncpy(result.nodename, s_hostname.chars(), _UTSNAME_LENGTH);
|
||||
|
||||
strncpy(result.release, MOON_VERSION, _UTSNAME_LENGTH);
|
||||
// FIXME: Hardcode this at build time instead of in code (should be the short commit hash).
|
||||
strncpy(result.version, MOON_RELEASE, _UTSNAME_LENGTH);
|
||||
|
||||
strncpy(result.machine, CPU::platform_string().chars(), _UTSNAME_LENGTH);
|
||||
|
Loading…
Reference in New Issue
Block a user