From: Jérémie Galarneau Date: Tue, 11 Aug 2020 16:22:19 +0000 (-0400) Subject: Clean-up: relayd trace-chunk: change space to tabs X-Git-Tag: v2.13.0-rc1~527 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=22df743552b122d3a2ba4d440cfc5bfcf0460138;p=lttng-tools.git Clean-up: relayd trace-chunk: change space to tabs Signed-off-by: Jérémie Galarneau Change-Id: I789edf8a6b9f893c6e3b5f72fb9001f8e68eebd7 --- diff --git a/src/bin/lttng-relayd/sessiond-trace-chunks.c b/src/bin/lttng-relayd/sessiond-trace-chunks.c index 3db2133ed..106523473 100644 --- a/src/bin/lttng-relayd/sessiond-trace-chunks.c +++ b/src/bin/lttng-relayd/sessiond-trace-chunks.c @@ -365,7 +365,7 @@ struct lttng_trace_chunk *sessiond_trace_chunk_registry_publish_chunk( lttng_uuid_copy(key.sessiond_uuid, sessiond_uuid); status = lttng_trace_chunk_get_id(new_chunk, &chunk_id); - if (status == LTTNG_TRACE_CHUNK_STATUS_OK) { + if (status == LTTNG_TRACE_CHUNK_STATUS_OK) { int ret; ret = snprintf(chunk_id_str, sizeof(chunk_id_str), "%" PRIu64, @@ -375,25 +375,25 @@ struct lttng_trace_chunk *sessiond_trace_chunk_registry_publish_chunk( WARN("Failed to format trace chunk id"); } is_anonymous_chunk = false; - } else if (status == LTTNG_TRACE_CHUNK_STATUS_NONE) { + } else if (status == LTTNG_TRACE_CHUNK_STATUS_NONE) { is_anonymous_chunk = true; } else { ERR("Failed to get trace chunk id"); goto end; } - DBG("Attempting to publish trace chunk: sessiond {%s}, session_id = " + DBG("Attempting to publish trace chunk: sessiond {%s}, session_id = " "%" PRIu64 ", chunk_id = %s", uuid_str, session_id, is_anonymous_chunk ? "anonymous" : chunk_id_str); - element = trace_chunk_registry_ht_element_find(sessiond_registry, &key); + element = trace_chunk_registry_ht_element_find(sessiond_registry, &key); if (!element) { ERR("Failed to find registry of sessiond {%s}", uuid_str); goto end; } - published_chunk = lttng_trace_chunk_registry_publish_chunk( + published_chunk = lttng_trace_chunk_registry_publish_chunk( element->trace_chunk_registry, session_id, new_chunk); /* * At this point, two references to the published chunks exist. One