mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2025-02-16 14:40:10 +00:00
Implement 8 loglevels to use with printk: While at it, separate the font in a new "video" directory, which also makes space for a proper video probing implementation. Fill in the font from 32 to 256. Scale the font to render twice as big. Implement dynamic line length detection. Change a few things here and there to follow the linux kernel code style. Add a nice logo. Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
22 lines
430 B
C
22 lines
430 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (c) 2022, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
|
|
*/
|
|
|
|
#ifndef DEBUG_H_ /* Include guard */
|
|
#define DEBUG_H_
|
|
|
|
// Sorted by importance
|
|
#define KERN_EMERG 0
|
|
#define KERN_ALERT 1
|
|
#define KERN_CRIT 2
|
|
#define KERN_ERR 3
|
|
#define KERN_WARNING 4
|
|
#define KERN_NOTICE 5
|
|
#define KERN_INFO 6
|
|
#define KERN_DEBUG 7
|
|
|
|
extern void printk(int loglevel, char *text);
|
|
|
|
#endif // DEBUG_H_
|