diff options
| author | Joe Perches <joe@perches.com> | 2010-11-10 16:19:06 -0500 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2010-11-30 05:31:05 -0500 |
| commit | edc221d00bd5c6da0e5c67701f3782b72796619f (patch) | |
| tree | 2376c53981a815716955659331d8956b46e95805 | |
| parent | 5e69069c1afb655b5f1a154856ccdb4bb7327b81 (diff) | |
GFS2: fs/gfs2/glock.h: Add __attribute__((format(printf,2,3)) to gfs2_print_dbg
Functions that use printf formatting, especially
those that use %pV, should have their uses of
printf format and arguments checked by the compiler.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
| -rw-r--r-- | fs/gfs2/glock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h index db1c26d6d22..a12d1176775 100644 --- a/fs/gfs2/glock.h +++ b/fs/gfs2/glock.h | |||
| @@ -212,6 +212,8 @@ int gfs2_glock_nq_num(struct gfs2_sbd *sdp, | |||
| 212 | int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); | 212 | int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); |
| 213 | void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs); | 213 | void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs); |
| 214 | void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs); | 214 | void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs); |
| 215 | |||
| 216 | __attribute__ ((format(printf, 2, 3))) | ||
| 215 | void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...); | 217 | void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...); |
| 216 | 218 | ||
| 217 | /** | 219 | /** |
