From 2a56e8dda4bac8621dedcb80b1f55c9a25c78d43 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 20 Nov 2010 18:36:25 -0800 Subject: Fix errors found by gcc's printf attribute check xkbevd.c: In function `parseArgs': xkbevd.c:120: warning: too few arguments for format xkbevd.c:139: warning: too few arguments for format xkbevd.c:158: warning: too few arguments for format xkbevd.c:177: warning: too few arguments for format xkbevd.c: In function `InterpretConfigs': xkbevd.c:280: warning: format argument is not a pointer (arg 2) xkbevd.c: In function `FindMatchingConfig': xkbevd.c:374: warning: too few arguments for format Signed-off-by: Alan Coopersmith --- xkbevd.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/xkbevd.c b/xkbevd.c index fa260d2..8cc379b 100644 --- a/xkbevd.c +++ b/xkbevd.c @@ -117,7 +117,8 @@ register int i; char *name= argv[++i]; if (cfgFileName!=NULL) { if (uStringEqual(cfgFileName,name)) - uWarning("Config file \"%s\" specified twice!\n"); + uWarning("Config file \"%s\" specified twice!\n", + name); else { uWarning("Multiple config files on command line\n"); uAction("Using \"%s\", ignoring \"%s\"\n",name, @@ -136,7 +137,8 @@ register int i; char *name= argv[++i]; if (dpyName!=NULL) { if (uStringEqual(dpyName,name)) - uWarning("Display \"%s\" specified twice!\n"); + uWarning("Display \"%s\" specified twice!\n", + name); else { uWarning("Multiple displays on command line\n"); uAction("Using \"%s\", ignoring \"%s\"\n",name, @@ -155,7 +157,8 @@ register int i; char *name= argv[++i]; if (soundCmd!=NULL) { if (uStringEqual(soundCmd,name)) - uWarning("Sound command \"%s\" specified twice!\n"); + uWarning("Sound command \"%s\" specified twice!\n", + name); else { uWarning("Multiple sound commands on command line\n"); uAction("Using \"%s\", ignoring \"%s\"\n",name, @@ -174,7 +177,8 @@ register int i; char *name= argv[++i]; if (soundDir!=NULL) { if (uStringEqual(soundDir,name)) - uWarning("Sound directory \"%s\" specified twice!\n"); + uWarning("Sound directory \"%s\" specified twice!\n", + name); else { uWarning("Multiple sound dirs on command line\n"); uAction("Using \"%s\", ignoring \"%s\"\n",name, @@ -277,7 +281,7 @@ unsigned priv= 0; } } else { - uWarning("Assignment to unknown variable \"%s\"\n",cfg->name); + uWarning("Assignment to unknown variable \"%s\"\n", name); uAction("Ignored\n"); } } @@ -371,7 +375,8 @@ CfgEntryPtr cfg,dflt; return cfg; break; default: - uInternalError("Can't handle type %d XKB events yet, Sorry.\n"); + uInternalError("Can't handle type %d XKB events yet, Sorry.\n", + ev->any.xkb_type); break; } } -- cgit v1.2.3