From a8b0eae6949299e9e7bbb51219ad7fdb8061702f Mon Sep 17 00:00:00 2001 From: subhobhai943 Date: Tue, 18 Aug 2026 20:16:10 +0530 Subject: [PATCH] fix(vfs): Include lib/printf.h for snprintf declaration across ARM32 and core kernel - Add #include in fs/vfs.c, include/lib/string.h, and include/kernel/printk.h - Ensure snprintf is always declared during freestanding compilation --- fs/vfs.c | 1 + include/kernel/printk.h | 1 + include/lib/string.h | 1 + 3 files changed, 3 insertions(+) diff --git a/fs/vfs.c b/fs/vfs.c index 2140185..6fa0e83 100644 --- a/fs/vfs.c +++ b/fs/vfs.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #define MAX_OPEN_FILES 64 diff --git a/include/kernel/printk.h b/include/kernel/printk.h index 2649351..3f107fd 100644 --- a/include/kernel/printk.h +++ b/include/kernel/printk.h @@ -4,6 +4,7 @@ #include #include #include +#include // Linux-compatible log level prefixes #define KERN_EMERG "\0010" /* system is unusable */ diff --git a/include/lib/string.h b/include/lib/string.h index 5e68d2c..029a51e 100644 --- a/include/lib/string.h +++ b/include/lib/string.h @@ -4,6 +4,7 @@ #include #include #include +#include // Memory functions void* memset(void* dest, int val, size_t count);