From e52948830e16b891021b2c21f8b8db66be4df47f Mon Sep 17 00:00:00 2001 From: Nathan Giddings Date: Wed, 8 Nov 2023 14:16:15 -0600 Subject: [PATCH] Added enum for future kernel log levels --- src/stdio.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/stdio.c b/src/stdio.c index 54a9f8c..e89e1ea 100644 --- a/src/stdio.c +++ b/src/stdio.c @@ -18,7 +18,18 @@ enum format_flags_t }; -char *itoa(unsigned int n, unsigned int base, unsigned int width) +typedef enum +{ + LOG_PANIC, + LOG_ERROR, + LOG_WARNING, + LOG_INFO, + LOG_DEBUG +} log_levels_t; + + + +static char *itoa(unsigned int n, unsigned int base, unsigned int width) { if (base < 2 || base > 16) {