Skip to content

Commit

Permalink
ring-buffer: fix printk output
Browse files Browse the repository at this point in the history
The warning output in trace_recursive_lock uses %d for a long when
it should be %ld.

[ Impact: fix compile warning ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Apr 29, 2009
1 parent f2957f1 commit 7d7d2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ static int trace_recursive_lock(void)
/* Disable all tracing before we do anything else */
tracing_off_permanent();

printk_once(KERN_WARNING "Tracing recursion: depth[%d]:"
printk_once(KERN_WARNING "Tracing recursion: depth[%ld]:"
"HC[%lu]:SC[%lu]:NMI[%lu]\n",
current->trace_recursion,
hardirq_count() >> HARDIRQ_SHIFT,
Expand Down

0 comments on commit 7d7d2b8

Please sign in to comment.