diff mbox series

[1/2] tracefs Documentation: Fix tracefs_hist_add_sort_key() example

Message ID 20211110231025.1131051-2-rostedt@goodmis.org (mailing list archive)
State Accepted
Commit 9851fed1a2130389678a7deb3430c9579ed437fc
Headers show
Series tracefs: Make minor updates to histograms | expand

Commit Message

Steven Rostedt Nov. 10, 2021, 11:10 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The tracefs_hist_add_sort_key() example in the man page had the old usage
of variable args. Update it to use the new "one at a time" version.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 Documentation/libtracefs-hist.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Documentation/libtracefs-hist.txt b/Documentation/libtracefs-hist.txt
index 0139ba8..cc82286 100644
--- a/Documentation/libtracefs-hist.txt
+++ b/Documentation/libtracefs-hist.txt
@@ -282,7 +282,8 @@  int main (int argc, char **argv, char **env)
 	}
 
 	ret = tracefs_hist_add_value(hist, "bytes_alloc");
-	ret |= tracefs_hist_add_sort_key(hist, "bytes_req", "bytes_alloc", NULL);
+	ret |= tracefs_hist_add_sort_key(hist, "bytes_req");
+	ret |= tracefs_hist_add_sort_key(hist, "bytes_alloc");
 
 	ret |= tracefs_hist_sort_key_direction(hist, "bytes_alloc",
 					       TRACEFS_HIST_SORT_DESCENDING);