diff mbox series

[1/2] trace-cmd: Its DEFAULT_INPUT_FILE not DEFAUT_INPUT_FILE

Message ID 20200309190526.741063088@goodmis.org (mailing list archive)
State Accepted
Commit 08435c4a23089a0903f3d255f87205c1aa33154d
Headers show
Series trace-cmd: A couple of clean up patches | expand

Commit Message

Steven Rostedt March 9, 2020, 7:04 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

Fix the typo in the DEFAULT_INPUT_FILE macro name.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 tracecmd/include/trace-local.h | 2 +-
 tracecmd/trace-dump.c          | 2 +-
 tracecmd/trace-hist.c          | 2 +-
 tracecmd/trace-mem.c           | 2 +-
 tracecmd/trace-read.c          | 2 +-
 tracecmd/trace-record.c        | 2 +-
 tracecmd/trace-restore.c       | 2 +-
 tracecmd/trace-split.c         | 2 +-
 tracecmd/trace-tsync.c         | 2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/tracecmd/include/trace-local.h b/tracecmd/include/trace-local.h
index 49c52b1762b6..5ef569f03553 100644
--- a/tracecmd/include/trace-local.h
+++ b/tracecmd/include/trace-local.h
@@ -14,7 +14,7 @@ 
 
 #define TRACE_AGENT_DEFAULT_PORT	823
 
-#define DEFAUT_INPUT_FILE	"trace.dat"
+#define DEFAULT_INPUT_FILE	"trace.dat"
 #define GUEST_PIPE_NAME		"trace-pipe-cpu"
 #define GUEST_DIR_FMT		"/var/lib/trace-cmd/virt/%s"
 #define GUEST_FIFO_FMT		GUEST_DIR_FMT "/" GUEST_PIPE_NAME "%d"
diff --git a/tracecmd/trace-dump.c b/tracecmd/trace-dump.c
index ffb1c6b17fff..5642f12a55ed 100644
--- a/tracecmd/trace-dump.c
+++ b/tracecmd/trace-dump.c
@@ -723,7 +723,7 @@  void trace_dump(int argc, char **argv)
 	}
 
 	if (!input_file)
-		input_file = DEFAUT_INPUT_FILE;
+		input_file = DEFAULT_INPUT_FILE;
 
 	if (!verbosity && !validate)
 		verbosity = SUMMARY;
diff --git a/tracecmd/trace-hist.c b/tracecmd/trace-hist.c
index fdfd4a1976d0..c458c25e2aa5 100644
--- a/tracecmd/trace-hist.c
+++ b/tracecmd/trace-hist.c
@@ -1037,7 +1037,7 @@  void trace_hist(int argc, char **argv)
 	}
 
 	if (!input_file)
-		input_file = DEFAUT_INPUT_FILE;
+		input_file = DEFAULT_INPUT_FILE;
 
 	handle = tracecmd_alloc(input_file);
 	if (!handle)
diff --git a/tracecmd/trace-mem.c b/tracecmd/trace-mem.c
index 5caeeb6cf86d..465b1823345d 100644
--- a/tracecmd/trace-mem.c
+++ b/tracecmd/trace-mem.c
@@ -548,7 +548,7 @@  void trace_mem(int argc, char **argv)
 	}
 
 	if (!input_file)
-		input_file = DEFAUT_INPUT_FILE;
+		input_file = DEFAULT_INPUT_FILE;
 
 	handle = tracecmd_alloc(input_file);
 	if (!handle)
diff --git a/tracecmd/trace-read.c b/tracecmd/trace-read.c
index c184c6273316..c1f840d560f2 100644
--- a/tracecmd/trace-read.c
+++ b/tracecmd/trace-read.c
@@ -74,7 +74,7 @@  struct pid_list *comm_list;
 
 static unsigned int page_size;
 static int input_fd;
-static const char *default_input_file = DEFAUT_INPUT_FILE;
+static const char *default_input_file = DEFAULT_INPUT_FILE;
 static const char *input_file;
 static int multi_inputs;
 static int max_file_size;
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c
index c8c853f80d11..280dc9ddf23a 100644
--- a/tracecmd/trace-record.c
+++ b/tracecmd/trace-record.c
@@ -69,7 +69,7 @@  static int rt_prio;
 
 static int keep;
 
-static const char *output_file = DEFAUT_INPUT_FILE;
+static const char *output_file = DEFAULT_INPUT_FILE;
 
 static int latency;
 static int sleep_time = 1000;
diff --git a/tracecmd/trace-restore.c b/tracecmd/trace-restore.c
index e3b86dd2085c..d6134acf2588 100644
--- a/tracecmd/trace-restore.c
+++ b/tracecmd/trace-restore.c
@@ -25,7 +25,7 @@ 
 void trace_restore (int argc, char **argv)
 {
 	struct tracecmd_output *handle;
-	const char *output_file = DEFAUT_INPUT_FILE;
+	const char *output_file = DEFAULT_INPUT_FILE;
 	const char *output = NULL;
 	const char *input = NULL;
 	const char *tracing_dir = NULL;
diff --git a/tracecmd/trace-split.c b/tracecmd/trace-split.c
index b4d0df32217c..bb2c3d5346b3 100644
--- a/tracecmd/trace-split.c
+++ b/tracecmd/trace-split.c
@@ -23,7 +23,7 @@ 
 #include "trace-local.h"
 
 static unsigned int page_size;
-static const char *default_input_file = DEFAUT_INPUT_FILE;
+static const char *default_input_file = DEFAULT_INPUT_FILE;
 static const char *input_file;
 
 enum split_types {
diff --git a/tracecmd/trace-tsync.c b/tracecmd/trace-tsync.c
index bf65e441a93e..eab2fda5b120 100644
--- a/tracecmd/trace-tsync.c
+++ b/tracecmd/trace-tsync.c
@@ -139,7 +139,7 @@  static void write_guest_time_shift(struct buffer_instance *instance)
 	if (ret < 0 || !count || !ts || !offsets)
 		return;
 
-	file = trace_get_guest_file(DEFAUT_INPUT_FILE,
+	file = trace_get_guest_file(DEFAULT_INPUT_FILE,
 				tracefs_instance_get_name(instance->tracefs));
 	fd = open(file, O_RDWR);
 	if (fd < 0)