1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

Kernel: Unbreak building with extra debug macros, part 2

This commit is contained in:
Ben Wiederhake 2020-08-27 00:58:09 +02:00 committed by Andreas Kling
parent eac3bbdcee
commit 081bb29626
9 changed files with 28 additions and 18 deletions

View file

@ -60,6 +60,8 @@
#include <Kernel/VM/PurgeableVMObject.h>
#include <LibC/errno_numbers.h>
//#define PROCFS_DEBUG
namespace Kernel {
enum ProcParentDirectory {
@ -1104,7 +1106,7 @@ InodeMetadata ProcFSInode::metadata() const
auto proc_file_type = to_proc_file_type(identifier());
#ifdef PROCFS_DEBUG
dbg() << " -> pid: " << pid << ", fi: " << proc_file_type << ", pdi: " << proc_parent_directory;
dbg() << " -> pid: " << to_pid(identifier()).value() << ", fi: " << proc_file_type << ", pdi: " << proc_parent_directory;
#endif
if (is_process_related_file(identifier())) {