tracing: Add trace_seq_has_overflowed() and trace_handle_return()
[sfrench/cifs-2.6.git] / include / trace / ftrace.h
index 26b4f2e13275d13246ef8709919cf1ab7e83247a..f13471b5d27ad8b061ed117d1a87e30de3e1e01c 100644 (file)
@@ -280,11 +280,9 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags,   \
        if (ret)                                                        \
                return ret;                                             \
                                                                        \
-       ret = trace_seq_printf(s, print);                               \
-       if (!ret)                                                       \
-               return TRACE_TYPE_PARTIAL_LINE;                         \
+       trace_seq_printf(s, print);                                     \
                                                                        \
-       return TRACE_TYPE_HANDLED;                                      \
+       return trace_handle_return(s);                                  \
 }                                                                      \
 static struct trace_event_functions ftrace_event_type_funcs_##call = { \
        .trace                  = ftrace_raw_output_##call,             \