kernel: Log hostname changes
This commit is contained in:
parent
a1b92fcc3f
commit
e3552d9df0
@ -1,3 +1,4 @@
|
|||||||
|
#include "Log.h"
|
||||||
#include "arch/CPU.h"
|
#include "arch/CPU.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "memory/MemoryManager.h"
|
#include "memory/MemoryManager.h"
|
||||||
@ -51,5 +52,7 @@ Result<u64> sys_sethostname(Registers*, SyscallArgs args)
|
|||||||
|
|
||||||
s_hostname.adopt(new_hostname);
|
s_hostname.adopt(new_hostname);
|
||||||
|
|
||||||
|
kinfoln("System hostname updated to '%s'", s_hostname.chars());
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user