path: use new log functions
authorRan Benita <ran234@gmail.com>
Sat, 21 Jul 2012 12:37:33 +0000 (15:37 +0300)
committerRan Benita <ran234@gmail.com>
Sun, 22 Jul 2012 21:45:35 +0000 (00:45 +0300)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/path.c

index 13a56e1..6910a03 100644 (file)
@@ -181,17 +181,15 @@ XkbFindFileInPath(struct xkb_context *ctx,
         ret = snprintf(buf, sizeof(buf), "%s/%s/%s",
                        xkb_context_include_path_get(ctx, i), typeDir, name);
         if (ret >= (ssize_t) sizeof(buf)) {
-            ERROR("File name (%s/%s/%s) too long\n",
-                  xkb_context_include_path_get(ctx, i), typeDir, name);
-            ACTION("Ignored\n");
+            log_err(ctx, "File name (%s/%s/%s) too long\n",
+                    xkb_context_include_path_get(ctx, i), typeDir, name);
             continue;
         }
         file = fopen(buf, "r");
         if (file == NULL) {
-            ERROR("Couldn't open file (%s/%s/%s): %s\n",
-                  xkb_context_include_path_get(ctx, i), typeDir, name,
-                  strerror(errno));
-            ACTION("Ignored\n");
+            log_err(ctx, "Couldn't open file (%s/%s/%s): %s\n",
+                    xkb_context_include_path_get(ctx, i), typeDir, name,
+                    strerror(errno));
             continue;
         }
         break;