X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fenable_rotation.c;h=85dae5681f251b398752cd204928116d32560983;hp=3c2bd787ecefc40b940fe511b6db27f9af153985;hb=a9577b7628a85b064c3f249c3504bad989848b49;hpb=66ea93b10c703e1b3dda1e17109eed9138e4ece2 diff --git a/src/bin/lttng/commands/enable_rotation.c b/src/bin/lttng/commands/enable_rotation.c index 3c2bd787e..85dae5681 100644 --- a/src/bin/lttng/commands/enable_rotation.c +++ b/src/bin/lttng/commands/enable_rotation.c @@ -106,7 +106,7 @@ static enum cmd_error_code add_schedule(const char *session_name, ret = CMD_ERROR; goto end; default: - ERR("Unknown error occured setting %s rotation schedule", + ERR("Unknown error occurred setting %s rotation schedule", schedule_type_name); ret = CMD_ERROR; goto end; @@ -296,7 +296,7 @@ int cmd_enable_rotation(int argc, const char **argv) } if (size_rotation) { - enum lttng_error_code tmp_ret; + enum cmd_error_code tmp_ret; /* Don't overwrite cmd_ret if it already indicates an error. */ tmp_ret = add_schedule(session_name,