Kernel: Silence debug spam when running dynamically linked programs

This commit is contained in:
Andreas Kling 2020-12-20 16:06:39 +01:00
parent c7d0c2ee7a
commit e5eda151b4
Notes: sideshowbarker 2024-07-19 00:43:39 +09:00

View file

@ -451,7 +451,9 @@ KResultOr<NonnullRefPtr<FileDescription>> Process::find_elf_interpreter_for_exec
if (elf_header->e_type != ET_DYN)
return KResult(-ENOEXEC);
#ifdef EXEC_DEBUG
dbg() << "exec(" << path << "): Using program interpreter " << interpreter_path;
#endif
auto interp_result = VFS::the().open(interpreter_path, O_EXEC, 0, current_directory());
if (interp_result.is_error()) {
dbg() << "exec(" << path << "): Unable to open program interpreter " << interpreter_path;