diff options
author | dzwdz | 2022-07-01 20:36:59 +0200 |
---|---|---|
committer | dzwdz | 2022-07-01 20:36:59 +0200 |
commit | 58c44c9a8feb8c258dcd85209149c16342995ec7 (patch) | |
tree | f3a3d61291beada2c3f9e7c773d42c202054263c /src/init/fs/misc.h | |
parent | 5b9f1ea3911a6e972263d00ea2ec04a56f56166d (diff) |
kernel: add the debug_klog syscall for tracking down process ids
Diffstat (limited to 'src/init/fs/misc.h')
-rw-r--r-- | src/init/fs/misc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/init/fs/misc.h b/src/init/fs/misc.h index e360a25..879be32 100644 --- a/src/init/fs/misc.h +++ b/src/init/fs/misc.h @@ -1,4 +1,5 @@ #pragma once +#include <init/stdlib.h> #include <stdbool.h> bool fork2_n_mount(const char *path); @@ -10,5 +11,5 @@ void fs_dir_inject(const char *path); /** Mounts something and injects its path into the fs */ // TODO path needs to have a trailing slash #define MOUNT(path, impl) \ - if (!fork2_n_mount(path)) {impl;} \ - if (!fork2_n_mount("/")) fs_dir_inject(path); + if (!fork2_n_mount(path)) {_klogf("impl %s", path); impl;} \ + if (!fork2_n_mount("/")) {_klogf("dir for %s", path); fs_dir_inject(path);} |