The registering of events had the return value check backwards.
A zero returned is success, the check had it as a failure.
This patch also fixes a missing "\n" in the warning that the check
failed.
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
        int ret;                                                        \
                                                                        \
        ret = register_trace_##call(ftrace_event_##call);               \
-       if (!ret)                                                       \
+       if (ret)                                                        \
                pr_info("event trace: Could not activate trace point "  \
-                       "probe to " #call);                             \
+                       "probe to " #call "\n");                        \
        return ret;                                                     \
 }                                                                      \
                                                                        \
        int ret;                                                        \
                                                                        \
        ret = register_trace_##call(ftrace_raw_event_##call);           \
-       if (!ret)                                                       \
+       if (ret)                                                        \
                pr_info("event trace: Could not activate trace point "  \
-                       "probe to " #call);                             \
+                       "probe to " #call "\n");                        \
        return ret;                                                     \
 }                                                                      \
                                                                        \