diff mbox series

libtracefs: Remove -d option from libtracefs-sql sqlhist example

Message ID 20210812144401.3a5a5499@oasis.local.home (mailing list archive)
State Accepted
Commit 5b8e54b1be4f2e1ecc1269d19c03f22d35c4f0e7
Headers show
Series libtracefs: Remove -d option from libtracefs-sql sqlhist example | expand

Commit Message

Steven Rostedt Aug. 12, 2021, 6:44 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The sqlhist example code does not delete the synthetic event, and the -d
option is ignored. It was added by mistake from copying from other example
code.

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

Patch

diff --git a/Documentation/libtracefs-sql.txt b/Documentation/libtracefs-sql.txt
index 91c99d7..35ccaf5 100644
--- a/Documentation/libtracefs-sql.txt
+++ b/Documentation/libtracefs-sql.txt
@@ -309,7 +309,6 @@  static void usage(char **argv)
 		"  -n name - name of synthetic event 'Anonymous' if left off\n"
 		"  -t dir - use dir instead of /sys/kernel/tracing\n"
 		"  -e - execute the commands to create the synthetic event\n"
-		"  -d - delete the synthetic event that would be created\n"
 		"  -f file - read sql lines from file otherwise from the command line\n"
 		"            if file is '-' then read from standard input.\n",
 		argv[0]);
@@ -383,7 +382,7 @@  int main (int argc, char **argv)
 	int i;
 
 	for (;;) {
-		c = getopt(argc, argv, "ht:f:edn:");
+		c = getopt(argc, argv, "ht:f:en:");
 		if (c == -1)
 			break;