diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-01-21 13:08:25 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-01-21 14:11:37 +1000 |
commit | 9510dedad875099c32993246188050ea73ab1a9f (patch) | |
tree | 2471fbf77a8fef9e3e57ac4cb757472d6cb96016 /xkbpath.c | |
parent | ff6a19ed8898ee8c79b2b2a2f87806353d89f5d4 (diff) |
Replace WARN[1-9], ERROR[1-9], etc. with their unnumbered version
Those macros date back to when varargs weren't a thing but they've
been #defined to the same value for 17 years now.
Patch generated with:
for action in WARN INFO ERROR ACTION FATAL WSGO; do
sed -i "s/${action}[1-9]/${action}/g" `git ls-files`
done
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkbpath.c')
-rw-r--r-- | xkbpath.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -212,7 +212,7 @@ XkbAddDirectoryToPath(const char *dir) len = strlen(dir); if (len + 2 >= PATH_MAX) { /* allow for '/' and at least one character */ - ERROR2("Path entry (%s) too long (maximum length is %d)\n", + ERROR("Path entry (%s) too long (maximum length is %d)\n", dir, PATH_MAX - 3); return False; } @@ -230,7 +230,7 @@ XkbAddDirectoryToPath(const char *dir) (char *) calloc(strlen(dir) + 1, sizeof(char)); if (includePath[nPathEntries] == NULL) { - WSGO1("Allocation failed (includePath[%d])\n", nPathEntries); + WSGO("Allocation failed (includePath[%d])\n", nPathEntries); return False; } strcpy(includePath[nPathEntries++], dir); @@ -317,7 +317,7 @@ XkbAddFileToCache(char *name, unsigned type, char *path, void *data) if ((type == entry->type) && (uStringEqual(name, entry->name))) { void *old = entry->data; - WSGO2("Replacing file cache entry (%s/%d)\n", name, type); + WSGO("Replacing file cache entry (%s/%d)\n", name, type); entry->path = path; entry->data = data; return old; @@ -392,7 +392,7 @@ XkbFindFileInPath(char *name, unsigned type, char **pathRtrn) if ((nameLen + typeLen + pathLen + 2) >= PATH_MAX) { - ERROR3("File name (%s/%s/%s) too long\n", includePath[i], + ERROR("File name (%s/%s/%s) too long\n", includePath[i], typeDir, name); ACTION("Ignored\n"); continue; |