summaryrefslogtreecommitdiffstats
path: root/lib/printpath.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-08-10 15:40:19 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-08-10 15:40:19 -0400
commitc4f8ef91f18d854a4ede7a94e95b2eab898d6963 (patch)
treec2772c4f380a684b6fa347f03b13f9476bf9500c /lib/printpath.c
parentb905869a35f062a4e5072f10bec3a2ba3db0e365 (diff)
downloadjove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.tar.gz
jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.tar.bz2
jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.zip
working usermode objdir iteration
Diffstat (limited to 'lib/printpath.c')
-rw-r--r--lib/printpath.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/printpath.c b/lib/printpath.c
new file mode 100644
index 0000000..5235572
--- /dev/null
+++ b/lib/printpath.c
@@ -0,0 +1,9 @@
+#include "print.h"
+#include "object.h"
+
+void
+kprint_objpath(path_byte_t *path, int len)
+{
+ kprintf("%x", *path);
+ for(int i = 1; i < len; i++) kprintf(":%x", path[i]);
+}