summaryrefslogtreecommitdiff
path: root/nfs/mount.c
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2011-10-19 00:09:18 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-10-19 00:11:46 +0200
commit98316b2065135f6f115d31ca5633eca0b9b78740 (patch)
tree0bc51a89b9e1ed40644b13a2ad49431e54763af4 /nfs/mount.c
parent7f0e0da1fb514c30df296e22481761b77f6d3a6a (diff)
Add missing format strings for error, printk, problem
Some calls to `error', `printk', and `problem' lacked a format string, leading to build failure when compiling with stricter CFLAGS. * nfs/mount.c (mount_root): Add format string for `error' calls which lacked it. * pfinet/main.c (pfinet_bind): Likewise. * term/main.c (main): Likewise. * utils/shd.c (run): Likewise. * utils/storeinfo.c (main): Likewise. * pfinet/linux-src/include/net/tcp.h (tcp_clear_xmit_timer): Add format string for `printk' call which lacked it. (tcp_timer_is_set): Likewise. * ufs-fsck/utilities.c (punt): Add format string for `problem' call which lacked it.
Diffstat (limited to 'nfs/mount.c')
-rw-r--r--nfs/mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nfs/mount.c b/nfs/mount.c
index 07dbb19b..6120f87a 100644
--- a/nfs/mount.c
+++ b/nfs/mount.c
@@ -199,7 +199,7 @@ mount_root (char *name, char *host)
err = conduct_rpc (&rpcbuf, &p);
if (err)
{
- error (0, err, name);
+ error (0, err, "%s", name);
goto error_with_rpcbuf;
}
/* XXX Protocol spec says this should be a "unix error code"; we'll
@@ -209,7 +209,7 @@ mount_root (char *name, char *host)
p++;
if (err)
{
- error (0, err, name);
+ error (0, err, "%s", name);
goto error_with_rpcbuf;
}