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 /keymap.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 'keymap.c')
-rw-r--r-- | keymap.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -74,7 +74,7 @@ CompileKeymap(XkbFile * file, XkbFileInfo * result, unsigned merge) legal = XkmKeymapLegal; break; default: - ERROR1("Cannot compile %s alone into an XKM file\n", + ERROR("Cannot compile %s alone into an XKM file\n", XkbConfigText(mainType, XkbMessage)); return False; } @@ -87,7 +87,7 @@ CompileKeymap(XkbFile * file, XkbFileInfo * result, unsigned merge) file->topName = mainName; if ((have & (1 << file->type)) != 0) { - ERROR2("More than one %s section in a %s file\n", + ERROR("More than one %s section in a %s file\n", XkbConfigText(file->type, XkbMessage), XkbConfigText(mainType, XkbMessage)); ACTION("All sections after the first ignored\n"); @@ -95,7 +95,7 @@ CompileKeymap(XkbFile * file, XkbFileInfo * result, unsigned merge) } else if ((1 << file->type) & (~legal)) { - ERROR2("Cannot define %s in a %s file\n", + ERROR("Cannot define %s in a %s file\n", XkbConfigText(file->type, XkbMessage), XkbConfigText(mainType, XkbMessage)); ok = False; @@ -106,7 +106,7 @@ CompileKeymap(XkbFile * file, XkbFileInfo * result, unsigned merge) case XkmSemanticsFile: case XkmLayoutFile: case XkmKeymapFile: - WSGO2("Illegal %s configuration in a %s file\n", + WSGO("Illegal %s configuration in a %s file\n", XkbConfigText(file->type, XkbMessage), XkbConfigText(mainType, XkbMessage)); ACTION("Ignored\n"); @@ -130,11 +130,11 @@ CompileKeymap(XkbFile * file, XkbFileInfo * result, unsigned merge) break; case XkmVirtualModsIndex: case XkmIndicatorsIndex: - WSGO1("Found an isolated %s section\n", + WSGO("Found an isolated %s section\n", XkbConfigText(file->type, XkbMessage)); break; default: - WSGO1("Unknown file type %d\n", file->type); + WSGO("Unknown file type %d\n", file->type); break; } if (ok) @@ -168,13 +168,13 @@ CompileKeymap(XkbFile * file, XkbFileInfo * result, unsigned merge) { if (missing & bit) { - ERROR2("Missing %s section in a %s file\n", + ERROR("Missing %s section in a %s file\n", XkbConfigText(i, XkbMessage), XkbConfigText(mainType, XkbMessage)); missing &= ~bit; } } - ACTION1("Description of %s not compiled\n", + ACTION("Description of %s not compiled\n", XkbConfigText(mainType, XkbMessage)); ok = False; } |