author | Steven Rostedt
<srostedt@redhat.com> 2009-09-27 11:02:07 UTC |
committer | Steven Rostedt
<rostedt@goodmis.org> 2009-10-07 18:05:04 UTC |
parent | b0f56f1a63b7b968e6feeeefeace24bc8e0a4a65 |
kernel/trace/trace_output.c | +8 | -6 |
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index cda766f9f42..ed17565826b 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c @@ -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