ftrace: Use kasprintf() in ftrace_profile_tracefs()
authorGeliang Tang <geliangtang@163.com>
Tue, 15 Mar 2016 14:12:34 +0000 (22:12 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 18 Mar 2016 14:31:34 +0000 (10:31 -0400)
commit6363c6b599ae67b779d01a48642a7c0d7d721814
tree16fbe88fc9313c9a407741151bedfe03b6b14a19
parent7f50d06bb6b825d34f069c6c7a1aab96ad0b94d9
ftrace: Use kasprintf() in ftrace_profile_tracefs()

Use kasprintf() instead of kmalloc() and snprintf().

Link: http://lkml.kernel.org/r/135a7bc36e51fd9eaa57124dd2140285b771f738.1458050835.git.geliangtang@163.com
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c