diff options
Diffstat (limited to 'src/rototiller.c')
-rw-r--r-- | src/rototiller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rototiller.c b/src/rototiller.c index 6857e72..84898da 100644 --- a/src/rototiller.c +++ b/src/rototiller.c @@ -440,8 +440,8 @@ int main(int argc, const char *argv[]) exit_if(!(rototiller.module = rototiller_lookup_module(settings_get_key(setup.module, 0))), "unable to lookup module from settings \"%s\"", settings_get_key(setup.module, 0)); - exit_if(!(rototiller.fb = fb_new(fb_ops, setup.video, NUM_FB_PAGES)), - "unable to create fb"); + exit_if((r = fb_new(fb_ops, setup.video, NUM_FB_PAGES, &rototiller.fb)) < 0, + "unable to create fb: %s", strerror(-r)); exit_if(!fps_setup(), "unable to setup fps counter"); |