Introduce fatal_error

This commit is contained in:
TuxSH
2018-05-20 16:18:48 +02:00
parent add03d5774
commit f45bc83bc4
14 changed files with 104 additions and 137 deletions

View File

@@ -13,7 +13,7 @@
* TODO: This should print via UART, console framebuffer, and to a ring for
* consumption by Horizon
*/
void printk(char *fmt, ...)
void printk(const char *fmt, ...)
{
va_list list;
va_start(list, fmt);
@@ -22,7 +22,7 @@ void printk(char *fmt, ...)
}
void vprintk(char *fmt, va_list args)
void vprintk(const char *fmt, va_list args)
{
char buf[512];
vsnprintf(buf, sizeof(buf), fmt, args);

View File

@@ -3,7 +3,7 @@
#include <stdarg.h>
void printk(char *fmt, ...);
void vprintk(char *fmt, va_list args);
void printk(const char *fmt, ...);
void vprintk(const char *fmt, va_list args);
#endif