aboutsummaryrefslogtreecommitdiff
path: root/common/debug.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-12 21:51:10 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-12 21:51:10 +0300
commitd95c714c8cfdc5818b0e0f0c99cf2e5be66de202 (patch)
tree3b7b7a4fda733f284a4f77a9e67cc509201cfeca /common/debug.c
parent1ab464d959b9ee3d3bb6758ac0d9d33fc6c77e46 (diff)
downloadkmi-d95c714c8cfdc5818b0e0f0c99cf2e5be66de202.tar.gz
kmi-d95c714c8cfdc5818b0e0f0c99cf2e5be66de202.zip
Initial physical page manager
+ Will probably still need a fair bit of tweakind and documentation improvements, but seems to work outside of the kernel. Also no valgrind errors, which is quite promising I guess.
Diffstat (limited to 'common/debug.c')
-rw-r--r--common/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/debug.c b/common/debug.c
index cd5e5d8..9925bd6 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -174,6 +174,7 @@ static size_t __print_prefix(size_t base)
const char *hex = "0x";
const char *oct = "0";
const char *bin = "0b";
+ const char *empty = "";
const char *prefix;
@@ -183,6 +184,8 @@ static size_t __print_prefix(size_t base)
prefix = oct;
else if(base == 2)
prefix = bin;
+ else
+ prefix = empty;
for(; *prefix ; ++i)
__putchar(*prefix++);