]> git.baikalelectronics.ru Git - kernel.git/commit
kmemtrace: Fix up tracer registration
authorPaul Mundt <lethal@linux-sh.org>
Mon, 28 Sep 2009 07:55:40 +0000 (16:55 +0900)
committerIngo Molnar <mingo@elte.hu>
Thu, 1 Oct 2009 09:53:44 +0000 (11:53 +0200)
commitb98195d29774a8ec79fcc60a16180219e019e611
tree76e93260f97e7f810faa811965032814ec36d678
parent9037b484bff060a9c67c73d55e697b4b2315c880
kmemtrace: Fix up tracer registration

Commit 96acdbbd9ead2da12fdead7b05aeae32d6dc44e9 ("kmemtrace: Print
binary output only if 'bin' option is set") ended up inverting the
error detection logic. register_tracer() returns 0 on success,
which this change caused to treat as an error, resulting in:

[    0.132000] Warning: could not register the kmem tracer

as well as bailing out of the initcall with an error value. This
restores the old logic.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <20090928075540.GD6668@linux-sh.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/kmemtrace.c