path: use new log functions Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/xkbcomp/path.c b/src/xkbcomp/path.c
index 13a56e1..6910a03 100644
--- a/src/xkbcomp/path.c
+++ b/src/xkbcomp/path.c
@@ -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;