Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 280d1429 authored by Namhyung Kim's avatar Namhyung Kim Committed by Steven Rostedt
Browse files

tracing: Improve message of empty set_graph_notrace file

When there's no entry in set_graph_notrace, it'll print below message

  #### all functions enabled ####

While this is technically correct, it's better to print like below:

  #### no functions disabled ####

Link: http://lkml.kernel.org/p/1402590233-22321-3-git-send-email-namhyung@kernel.org



Reported-by: default avatarNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 0d7d9a16
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4089,7 +4089,12 @@ static int g_show(struct seq_file *m, void *v)
		return 0;

	if (ptr == (unsigned long *)1) {
		struct ftrace_graph_data *fgd = m->private;

		if (fgd->table == ftrace_graph_funcs)
			seq_printf(m, "#### all functions enabled ####\n");
		else
			seq_printf(m, "#### no functions disabled ####\n");
		return 0;
	}