diff options
Diffstat (limited to 'src/cmd/dvd/dvd.c')
-rw-r--r-- | src/cmd/dvd/dvd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/dvd/dvd.c b/src/cmd/dvd/dvd.c index a15b440..b20858d 100644 --- a/src/cmd/dvd/dvd.c +++ b/src/cmd/dvd/dvd.c @@ -1,13 +1,12 @@ #include <camellia/execbuf.h> #include <camellia/syscalls.h> +#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <draw.h> -#define eprintf(fmt, ...) fprintf(stderr, "vterm: "fmt"\n" __VA_OPT__(,) __VA_ARGS__) - struct framebuf fb; struct rect dirty; @@ -23,7 +22,7 @@ void draw_rect(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t col) { int main(void) { if (fb_setup(&fb, "/kdev/video/") < 0) { - eprintf("fb_setup error"); + err(1, "fb_setup"); return 1; } int dx = 2, dy = 2, x = 100, y = 100, w = 150, h = 70; |