aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r--fs/gfs2/glock.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 13155f60b59..a9b53a48abe 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -951,17 +951,22 @@ int gfs2_glock_wait(struct gfs2_holder *gh)
951 951
952void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...) 952void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...)
953{ 953{
954 struct va_format vaf;
954 va_list args; 955 va_list args;
955 956
956 va_start(args, fmt); 957 va_start(args, fmt);
958
957 if (seq) { 959 if (seq) {
958 struct gfs2_glock_iter *gi = seq->private; 960 struct gfs2_glock_iter *gi = seq->private;
959 vsprintf(gi->string, fmt, args); 961 vsprintf(gi->string, fmt, args);
960 seq_printf(seq, gi->string); 962 seq_printf(seq, gi->string);
961 } else { 963 } else {
962 printk(KERN_ERR " "); 964 vaf.fmt = fmt;
963 vprintk(fmt, args); 965 vaf.va = &args;
966
967 printk(KERN_ERR " %pV", &vaf);
964 } 968 }
969
965 va_end(args); 970 va_end(args);
966} 971}
967 972