static int validate_command_options(void)
{
int ret = CMD_SUCCESS;
+
if (opt_snapshot && opt_live_timer) {
ERR("Snapshot and live modes are mutually exclusive.");
ret = CMD_ERROR;
}
if ((!opt_ctrl_url && opt_data_url) || (opt_ctrl_url && !opt_data_url)) {
- ERR("You need both control and data URL.");
+ ERR("Control and data URLs must both be set.");
ret = CMD_ERROR;
goto error;
}
}
/*
- * Create a session via direct calls to liblttng-ctl.
+ * Create a session using direct calls to liblttng-ctl.
*
* Return CMD_SUCCESS on success, negative value on internal lttng errors and positive
* value on command errors.