diff options
Diffstat (limited to 'src/cmd/vterm')
-rw-r--r-- | src/cmd/vterm/vterm.c | 3 | ||||
-rw-r--r-- | src/cmd/vterm/vterm.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/vterm/vterm.c b/src/cmd/vterm/vterm.c index f365f6b..97149c9 100644 --- a/src/cmd/vterm/vterm.c +++ b/src/cmd/vterm/vterm.c @@ -1,5 +1,6 @@ #include "vterm.h" #include <camellia/syscalls.h> +#include <err.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> @@ -37,7 +38,7 @@ void in_char(char c) { int main(void) { if (fb_setup(&fb, "/kdev/video/") < 0) { - eprintf("fb_setup error"); + err(1, "fb_setup"); return 1; } font_load("/init/usr/share/fonts/spleen/spleen-8x16.psfu"); diff --git a/src/cmd/vterm/vterm.h b/src/cmd/vterm/vterm.h index 026e71a..960f089 100644 --- a/src/cmd/vterm/vterm.h +++ b/src/cmd/vterm/vterm.h @@ -4,9 +4,6 @@ #include <stdio.h> #include <draw.h> -#define eprintf(fmt, ...) fprintf(stderr, "vterm: "fmt"\n" __VA_OPT__(,) __VA_ARGS__) - - struct psf1 { uint16_t magic; uint8_t mode; |