* SOFTWARE.
*/
-#define BT_LOG_TAG "CLI-CFG-CLI-ARGS"
+#define BT_LOG_TAG "CLI/CFG-CLI-ARGS"
#include "logging.h"
#include <errno.h>
return;
}
- for (at = list; at != NULL; at = g_list_next(at)) {
+ for (at = list; at; at = g_list_next(at)) {
g_string_free(at->data, TRUE);
}
BT_ASSERT(sink_names);
/* Connect all sources to the first filter */
- for (source_at = source_names; source_at != NULL; source_at = g_list_next(source_at)) {
+ for (source_at = source_names; source_at; source_at = g_list_next(source_at)) {
GString *source_name = source_at->data;
GString *filter_name = filter_at->data;
filter_at = g_list_next(filter_at);
/* Connect remaining filters */
- for (; filter_at != NULL; filter_prev = filter_at, filter_at = g_list_next(filter_at)) {
+ for (; filter_at; filter_prev = filter_at, filter_at = g_list_next(filter_at)) {
GString *filter_name = filter_at->data;
GString *filter_prev_name = filter_prev->data;
}
/* Connect last filter to all sinks */
- for (sink_at = sink_names; sink_at != NULL; sink_at = g_list_next(sink_at)) {
+ for (sink_at = sink_names; sink_at; sink_at = g_list_next(sink_at)) {
GString *filter_name = filter_prev->data;
GString *sink_name = sink_at->data;
break;
case OPT_STREAM_INTERSECTION:
/*
- * Applies to all traces implementing the trace-info
- * query.
+ * Applies to all traces implementing the
+ * babeltrace.trace-info query.
*/
stream_intersection_mode = true;
break;