tracing: provide correct return value after outputting the event
authorWenji Huang <wenji.huang@oracle.com>
Tue, 10 Feb 2009 06:03:05 +0000 (01:03 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Tue, 10 Feb 2009 17:32:33 +0000 (12:32 -0500)
commit810dc73265cd690b2bc6010489b4317bba2cda39
tree5cc203b18962bdf92dc065da933737cd04b8a2d2
parentf54fc98aa656f334c1571df6e3ca9178ea223847
tracing: provide correct return value after outputting the event

This patch is to make the function return early on failure, and give
correct return value on success.

Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/trace_functions_graph.c