Fixes: 5c013e7 (libtracefs: New APIs for trace options) Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx> --- include/tracefs.h | 2 +- src/tracefs-tools.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.27.0