summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-11-20 18:36:25 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-11-20 18:36:25 -0800
commit2a56e8dda4bac8621dedcb80b1f55c9a25c78d43 (patch)
tree0948be2e9c82c20baa1d3da2b59ae1383d4af562
parent45d575da032967b8920cf57491b7bd3bcd2991af (diff)
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 <alan.coopersmith@oracle.com>
-rw-r--r--xkbevd.c17
1 files 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;
}
}