diff options
Diffstat (limited to 'kernel/src/klibc/stdio.hpp')
| -rw-r--r-- | kernel/src/klibc/stdio.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/src/klibc/stdio.hpp b/kernel/src/klibc/stdio.hpp index cce2bcf..71b98e5 100644 --- a/kernel/src/klibc/stdio.hpp +++ b/kernel/src/klibc/stdio.hpp @@ -15,4 +15,6 @@ namespace klibc { } void printf(const char* fmt, ...); -};
\ No newline at end of file +}; + +#define log(name, msg, ...) klibc::printf("\033[1;31m" name "\033[0m: " msg "\r\n" , ##__VA_ARGS__)
\ No newline at end of file |
