Added enum for future kernel log levels

This commit is contained in:
2023-11-08 14:16:15 -06:00
parent 31f7eb34a6
commit e52948830e

View File

@@ -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) if (base < 2 || base > 16)
{ {