tracing: fix transposed numbers of lock_depth and preempt_count
authorSteven Rostedt <srostedt@redhat.com>
Sun, 27 Sep 2009 11:02:07 +0000 (07:02 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 7 Oct 2009 18:05:04 +0000 (14:05 -0400)
The lock_depth and preempt_count numbers in the latency format is
transposed.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_output.c

index cda766f9f421a906cc745db2e464619a99269885..ed17565826b0d82b00029a145cac7c2d75488adf 100644 (file)
@@ -486,16 +486,18 @@ int trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry)
                                hardirq ? 'h' : softirq ? 's' : '.'))
                return 0;
 
-       if (entry->lock_depth < 0)
-               ret = trace_seq_putc(s, '.');
+       if (entry->preempt_count)
+               ret = trace_seq_printf(s, "%x", entry->preempt_count);
        else
-               ret = trace_seq_printf(s, "%d", entry->lock_depth);
+               ret = trace_seq_putc(s, '.');
+
        if (!ret)
                return 0;
 
-       if (entry->preempt_count)
-               return trace_seq_printf(s, "%x", entry->preempt_count);
-       return trace_seq_putc(s, '.');
+       if (entry->lock_depth < 0)
+               return trace_seq_putc(s, '.');
+
+       return trace_seq_printf(s, "%d", entry->lock_depth);
 }
 
 static int