summaryrefslogtreecommitdiff
path: root/utils
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 /utils
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 'utils')
-rw-r--r--utils/shd.c2
-rw-r--r--utils/storeinfo.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/shd.c b/utils/shd.c
index 0587fa42..a1a4b26b 100644
--- a/utils/shd.c
+++ b/utils/shd.c
@@ -86,7 +86,7 @@ run (char **argv, int fd0, int fd1)
file = file_name_lookup (program, O_EXEC, 0);
if (file == MACH_PORT_NULL)
{
- error (0, errno, program);
+ error (0, errno, "%s", program);
return -1;
}
else
diff --git a/utils/storeinfo.c b/utils/storeinfo.c
index 411bf11a..a738d50d 100644
--- a/utils/storeinfo.c
+++ b/utils/storeinfo.c
@@ -204,7 +204,7 @@ main (int argc, char *argv[])
struct store *store;
if (file == MACH_PORT_NULL)
- error (3, err, source);
+ error (3, err, "%s", source);
if (print_prefix < 0)
/* By default, only print filename prefixes for multiple files. */
@@ -220,7 +220,7 @@ main (int argc, char *argv[])
of what the unknown data looked like. */
err = store_create (file, STORE_INACTIVE|STORE_NO_FILEIO, 0, &store);
if (err)
- error (4, err, source);
+ error (4, err, "%s", source);
print_store (store, 0, what);
store_free (store);