Added enum for future kernel log levels
This commit is contained in:
13
src/stdio.c
13
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)
|
if (base < 2 || base > 16)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user