kernel: Log the release name and build date in the boot log

This commit is contained in:
apio 2023-07-24 11:48:01 +02:00
parent 01359af288
commit ad3f3bf4db
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 1 additions and 2 deletions

View File

@ -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);

View File

@ -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);