diff options
Diffstat (limited to 'src/ppu.c')
-rw-r--r-- | src/ppu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -88,12 +88,12 @@ ppu_init(void) { | |||
88 | // Open frambuffer and get the size. | 88 | // Open frambuffer and get the size. |
89 | int fb = open("/dev/fb0", O_RDWR); | 89 | int fb = open("/dev/fb0", O_RDWR); |
90 | if (fb <= 0) { | 90 | if (fb <= 0) { |
91 | fprintf(stderr, "couldn't open the framebuffer\n"); | 91 | fprintf(stderr, "error: couldn't open the framebuffer\n"); |
92 | exit(EXIT_FAILURE); | 92 | exit(EXIT_FAILURE); |
93 | } | 93 | } |
94 | struct fb_var_screeninfo info; | 94 | struct fb_var_screeninfo info; |
95 | if (ioctl(fb, FBIOGET_VSCREENINFO, &info) != 0) { | 95 | if (ioctl(fb, FBIOGET_VSCREENINFO, &info) != 0) { |
96 | fprintf(stderr, "couldn't get the framebuffer size\n"); | 96 | fprintf(stderr, "error: couldn't get the framebuffer size\n"); |
97 | exit(EXIT_FAILURE); | 97 | exit(EXIT_FAILURE); |
98 | } | 98 | } |
99 | 99 | ||
@@ -103,7 +103,7 @@ ppu_init(void) { | |||
103 | size_t len = 4 * screen_width * screen_height; | 103 | size_t len = 4 * screen_width * screen_height; |
104 | framebuffer = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fb, 0); | 104 | framebuffer = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fb, 0); |
105 | if (framebuffer == MAP_FAILED) { | 105 | if (framebuffer == MAP_FAILED) { |
106 | fprintf(stderr, "couldn't mmap the framebuffer\n"); | 106 | fprintf(stderr, "error: couldn't mmap the framebuffer\n"); |
107 | exit(EXIT_FAILURE); | 107 | exit(EXIT_FAILURE); |
108 | } | 108 | } |
109 | 109 | ||