commit a3c2171

Michael Forney  ·  2014-01-22 03:37:31 +0000 UTC
parent bf89f12
xkb: Use ERROR
1 files changed,  +5, -4
+5, -4
 1@@ -22,6 +22,7 @@
 2  */
 3 
 4 #include "xkb.h"
 5+#include "util.h"
 6 
 7 #include <stdlib.h>
 8 #include <fcntl.h>
 9@@ -41,7 +42,7 @@ bool swc_xkb_initialize(struct swc_xkb * xkb)
10 
11     if (!xkb->context)
12     {
13-        printf("could not create XKB context\n");
14+        ERROR("Could not create XKB context\n");
15         goto error0;
16     }
17 
18@@ -49,7 +50,7 @@ bool swc_xkb_initialize(struct swc_xkb * xkb)
19 
20     if (!xkb->keymap.map)
21     {
22-        printf("could not create XKB keymap\n");
23+        ERROR("Could not create XKB keymap\n");
24         goto error1;
25     }
26 
27@@ -57,13 +58,13 @@ bool swc_xkb_initialize(struct swc_xkb * xkb)
28 
29     if (!xkb->state)
30     {
31-        printf("could not create XKB state\n");
32+        ERROR("Could not create XKB state\n");
33         goto error2;
34     }
35 
36     if (!swc_xkb_update_keymap(xkb))
37     {
38-        printf("could not update XKB keymap\n");
39+        ERROR("Could not update XKB keymap\n");
40         goto error3;
41     }
42