commit 63f0935
Michael Forney
·
2013-12-07 06:53:32 +0000 UTC
parent bb19aaf
swc: Use ERROR
1 files changed,
+6,
-6
+6,
-6
1@@ -86,13 +86,13 @@ bool swc_initialize(struct wl_display * display,
2
3 if (!(swc.udev = udev_new()))
4 {
5- fprintf(stderr, "Could not initialize udev\n");
6+ ERROR("Could not initialize udev\n");
7 goto error0;
8 }
9
10 if (!swc_compositor_initialize(&compositor, display, swc.event_loop))
11 {
12- fprintf(stderr, "Could not initialize compositor\n");
13+ ERROR("Could not initialize compositor\n");
14 goto error1;
15 }
16
17@@ -106,26 +106,26 @@ bool swc_initialize(struct wl_display * display,
18
19 if (!swc_seat_initialize())
20 {
21- fprintf(stderr, "Could not initialize seat\n");
22+ ERROR("Could not initialize seat\n");
23 goto error3;
24 }
25
26 if (!swc_bindings_initialize())
27 {
28- fprintf(stderr, "Could not initialize bindings\n");
29+ ERROR("Could not initialize bindings\n");
30 goto error4;
31 }
32
33 if (!swc_shell_initialize())
34 {
35- fprintf(stderr, "Could not initialize shell\n");
36+ ERROR("Could not initialize shell\n");
37 goto error5;
38 }
39
40 #ifdef ENABLE_XWAYLAND
41 if (!swc_xserver_initialize())
42 {
43- fprintf(stderr, "Could not initialize xwayland\n");
44+ ERROR("Could not initialize xwayland\n");
45 goto error6;
46 }
47 #endif