summaryrefslogtreecommitdiff
path: root/pfinet
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 /pfinet
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 'pfinet')
-rw-r--r--pfinet/linux-src/include/net/tcp.h4
-rw-r--r--pfinet/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/pfinet/linux-src/include/net/tcp.h b/pfinet/linux-src/include/net/tcp.h
index 8072324d..abb4b210 100644
--- a/pfinet/linux-src/include/net/tcp.h
+++ b/pfinet/linux-src/include/net/tcp.h
@@ -1066,7 +1066,7 @@ static inline void tcp_clear_xmit_timer(struct sock *sk, int what)
timer = &tp->probe_timer;
break;
default:
- printk(timer_bug_msg);
+ printk("%s", timer_bug_msg);
return;
};
if(timer->prev != NULL)
@@ -1088,7 +1088,7 @@ static inline int tcp_timer_is_set(struct sock *sk, int what)
return tp->probe_timer.prev != NULL;
break;
default:
- printk(timer_bug_msg);
+ printk("%s", timer_bug_msg);
};
return 0;
}
diff --git a/pfinet/main.c b/pfinet/main.c
index b4af267a..1357b037 100644
--- a/pfinet/main.c
+++ b/pfinet/main.c
@@ -415,7 +415,7 @@ pfinet_bind (int portclass, const char *name)
}
if (err)
- error (1, err, name);
+ error (1, err, "%s", name);
ports_port_deref (cntl);