diff mbox series

[3/4] libtracefs: Fix typo in function name

Message ID 20210608135503.12135-3-y.karadz@gmail.com (mailing list archive)
State Accepted
Headers show
Series [1/4] libtracefs: Fix enable_disable_all() return value | expand

Commit Message

Yordan Karadzhov June 8, 2021, 1:55 p.m. UTC
Fixes: 5c013e7 (libtracefs: New APIs for trace options)
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 include/tracefs.h   | 2 +-
 src/tracefs-tools.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/include/tracefs.h b/include/tracefs.h
index 08dda13..e29b550 100644
--- a/include/tracefs.h
+++ b/include/tracefs.h
@@ -159,7 +159,7 @@  bool tracefs_option_is_supported(struct tracefs_instance *instance, enum tracefs
 const struct tracefs_options_mask *tracefs_options_get_enabled(struct tracefs_instance *instance);
 bool tracefs_option_is_enabled(struct tracefs_instance *instance, enum tracefs_option_id id);
 int tracefs_option_enable(struct tracefs_instance *instance, enum tracefs_option_id id);
-int tracefs_option_diasble(struct tracefs_instance *instance, enum tracefs_option_id id);
+int tracefs_option_disable(struct tracefs_instance *instance, enum tracefs_option_id id);
 const char *tracefs_option_name(enum tracefs_option_id id);
 enum tracefs_option_id tracefs_option_id(const char *name);
 
diff --git a/src/tracefs-tools.c b/src/tracefs-tools.c
index 993fb3c..ca40d4d 100644
--- a/src/tracefs-tools.c
+++ b/src/tracefs-tools.c
@@ -307,13 +307,13 @@  int tracefs_option_enable(struct tracefs_instance *instance, enum tracefs_option
 }
 
 /**
- * tracefs_option_diasble - Disable trace option
+ * tracefs_option_disable - Disable trace option
  * @instance: ftrace instance, can be NULL for the top instance
  * @id: trace option id
  *
  * Returns -1 in case of an error or 0 otherwise
  */
-int tracefs_option_diasble(struct tracefs_instance *instance, enum tracefs_option_id id)
+int tracefs_option_disable(struct tracefs_instance *instance, enum tracefs_option_id id)
 {
 	return trace_config_option(instance, id, false);
 }