#include "babeltrace-cfg-cli-args.h"
#include "babeltrace-cfg-cli-args-connect.h"
+#define BT_LOG_TAG "CLI-CFG-ARGS"
+#include "logging.h"
+
/*
* Error printf() macro which prepends "Error: " the first time it's
* called. This gives a nicer feel than having a bunch of error prefixes
state->expecting = INI_EXPECT_MAP_KEY;
goto success;
default:
- assert(false);
+ abort();
}
error:
}
break;
default:
- assert(false);
+ abort();
}
g_free(cfg);
};
enum bt_config_component_dest {
+ BT_CONFIG_COMPONENT_DEST_UNKNOWN = -1,
BT_CONFIG_COMPONENT_DEST_SOURCE,
BT_CONFIG_COMPONENT_DEST_FILTER,
BT_CONFIG_COMPONENT_DEST_SINK,
g_ptr_array_add(cfg->cmd_data.run.sinks, cfg_comp);
break;
default:
- assert(false);
+ abort();
}
}
BT_COMPONENT_CLASS_TYPE_SINK;
break;
default:
- assert(false);
+ abort();
}
plug_comp_cls_names = strdup(arg);
if (!plug_comp_cls_names) {
type = BT_COMPONENT_CLASS_TYPE_SINK;
break;
default:
- assert(false);
+ abort();
}
cfg->cmd_data.query.cfg_component =
poptContext pc = NULL;
char *arg = NULL;
struct bt_config_component *cur_cfg_comp = NULL;
- enum bt_config_component_dest cur_cfg_comp_dest;
+ enum bt_config_component_dest cur_cfg_comp_dest =
+ BT_CONFIG_COMPONENT_DEST_UNKNOWN;
struct bt_value *cur_base_params = NULL;
int opt, ret = 0;
struct bt_config *cfg = NULL;
opt_name = "--sink";
break;
default:
- assert(false);
+ abort();
}
if (cur_cfg_comp) {
}
break;
default:
- assert(false);
+ abort();
}
if (bt_value_array_append_string(run_args,
*sink_names = g_list_append(*sink_names, name);
break;
default:
- assert(false);
+ abort();
}
g_string_assign(cur_name_prefix, "");
{
poptContext pc = NULL;
char *arg = NULL;
- enum bt_config_component_dest cur_comp_dest;
+ enum bt_config_component_dest cur_comp_dest =
+ BT_CONFIG_COMPONENT_DEST_UNKNOWN;
int opt, ret = 0;
struct bt_config *cfg = NULL;
bool got_verbose_opt = false;
}
break;
default:
- assert(false);
+ abort();
}
if (bt_value_array_append_string(run_args, arg)) {
break;
case OPT_CLOCK_FORCE_CORRELATE:
append_implicit_component_param(
- &implicit_muxer_args, "force-correlate", "yes");
+ &implicit_muxer_args, "assume-absolute-clock-classes", "yes");
break;
case OPT_CLOCK_GMT:
append_implicit_component_param(
if (implicit_lttng_live_args.exists) {
lttng_live_url_parts =
bt_common_parse_lttng_live_url(leftover,
- error_buf, 256);
+ error_buf, sizeof(error_buf));
if (!lttng_live_url_parts.proto) {
printf_err("Invalid LTTng live URL format: %s\n",
error_buf);
force_omit_home_plugin_path, initial_plugin_paths);
break;
default:
- assert(false);
+ abort();
}
if (config) {