Cleanup: typo: overriden -> overridden
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 14 Aug 2019 14:52:49 +0000 (10:52 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 30 Aug 2019 21:49:55 +0000 (17:49 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/consumer.c
src/common/relayd/relayd.c
src/common/sessiond-comm/sessiond-comm.h
src/common/trace-chunk.c
src/common/trace-chunk.h

index 9c178f5fae87346bb7d2ca4980652fe476390a32..c90436c574270e2716372853b4a4c86dbbc80578 100644 (file)
@@ -1698,7 +1698,7 @@ int consumer_create_trace_chunk(struct consumer_socket *socket,
        const struct lttng_directory_handle *chunk_directory_handle;
        int chunk_dirfd;
        const char *chunk_name;
-       bool chunk_name_overriden;
+       bool chunk_name_overridden;
        uint64_t chunk_id;
        time_t creation_timestamp;
        char creation_timestamp_buffer[ISO8601_STR_LEN];
@@ -1718,14 +1718,14 @@ int consumer_create_trace_chunk(struct consumer_socket *socket,
        }
 
        chunk_status = lttng_trace_chunk_get_name(chunk, &chunk_name,
-                       &chunk_name_overriden);
+                       &chunk_name_overridden);
        if (chunk_status != LTTNG_TRACE_CHUNK_STATUS_OK &&
                        chunk_status != LTTNG_TRACE_CHUNK_STATUS_NONE) {
                ERR("Failed to get name of trace chunk");
                ret = -LTTNG_ERR_FATAL;
                goto error;
        }
-       if (chunk_name_overriden) {
+       if (chunk_name_overridden) {
                ret = lttng_strncpy(msg.u.create_trace_chunk.override_name,
                                chunk_name,
                                sizeof(msg.u.create_trace_chunk.override_name));
index 76c54a4a9f6724708f8e3f07153aaea29bddc0fa..1b0a8e42a19d0094793aad10aecfdcb9b467cd8e 100644 (file)
@@ -1228,7 +1228,7 @@ int relayd_create_trace_chunk(struct lttcomm_relayd_sock *sock,
        time_t creation_timestamp;
        const char *chunk_name;
        size_t chunk_name_length;
-       bool overriden_name;
+       bool overridden_name;
 
        lttng_dynamic_buffer_init(&payload);
 
@@ -1246,14 +1246,14 @@ int relayd_create_trace_chunk(struct lttcomm_relayd_sock *sock,
        }
 
        status = lttng_trace_chunk_get_name(
-                       chunk, &chunk_name, &overriden_name);
+                       chunk, &chunk_name, &overridden_name);
        if (status != LTTNG_TRACE_CHUNK_STATUS_OK &&
                        status != LTTNG_TRACE_CHUNK_STATUS_NONE) {
                ret = -1;
                goto end;
        }
 
-       chunk_name_length = overriden_name ? (strlen(chunk_name) + 1) : 0;
+       chunk_name_length = overridden_name ? (strlen(chunk_name) + 1) : 0;
        msg = (typeof(msg)){
                .chunk_id = htobe64(chunk_id),
                .creation_timestamp = htobe64((uint64_t) creation_timestamp),
index a1be2d0a029c72e6ddb0fb2b4abd8f66a9136e2e..9e757f1fdb466a6102fbd5d389706cf53ac5e01c 100644 (file)
@@ -632,7 +632,7 @@ struct lttcomm_consumer_msg {
                         * (relayd_id unset).
                         *
                         * `override_name` is left NULL (all-zeroes) if the
-                        * chunk's name is not overriden.
+                        * chunk's name is not overridden.
                         */
                        LTTNG_OPTIONAL_COMM(uint64_t) LTTNG_PACKED relayd_id;
                        char override_name[LTTNG_NAME_MAX];
index 172bd3df88e1d32247a93f06786f8c639de5225b..a183fbeb0ff18d6aa969d984685228c0691cc46e 100644 (file)
@@ -77,7 +77,7 @@ struct lttng_trace_chunk {
        struct lttng_dynamic_pointer_array top_level_directories;
        /* Is contained within an lttng_trace_chunk_registry_element? */
        bool in_registry_element;
-       bool name_overriden;
+       bool name_overridden;
        char *name;
        /* An unset id means the chunk is anonymous. */
        LTTNG_OPTIONAL(uint64_t) id;
@@ -381,13 +381,13 @@ end:
 LTTNG_HIDDEN
 enum lttng_trace_chunk_status lttng_trace_chunk_get_name(
                struct lttng_trace_chunk *chunk, const char **name,
-               bool *name_overriden)
+               bool *name_overridden)
 {
        enum lttng_trace_chunk_status status = LTTNG_TRACE_CHUNK_STATUS_OK;
 
        pthread_mutex_lock(&chunk->lock);
-        if (name_overriden) {
-               *name_overriden = chunk->name_overriden;
+        if (name_overridden) {
+               *name_overridden = chunk->name_overridden;
         }
         if (!chunk->name) {
                status = LTTNG_TRACE_CHUNK_STATUS_NONE;
@@ -450,7 +450,7 @@ enum lttng_trace_chunk_status lttng_trace_chunk_override_name(
        }
        free(chunk->name);
        chunk->name = new_name;
-       chunk->name_overriden = true;
+       chunk->name_overridden = true;
 end_unlock:    
        pthread_mutex_unlock(&chunk->lock);
 end:
@@ -840,7 +840,7 @@ void lttng_trace_chunk_move_to_completed(struct lttng_trace_chunk *trace_chunk)
        }
 
        assert(trace_chunk->mode.value == TRACE_CHUNK_MODE_OWNER);
-       assert(!trace_chunk->name_overriden);
+       assert(!trace_chunk->name_overridden);
 
        /*
         * The fist trace chunk of a session is directly output to the
index 474e9e000d2caf671eb3578fac1ca6edc3ac3041..8703d00444df7837069fdc54dc7fb68926456bf5 100644 (file)
@@ -102,7 +102,7 @@ enum lttng_trace_chunk_status lttng_trace_chunk_set_close_timestamp(
 LTTNG_HIDDEN
 enum lttng_trace_chunk_status lttng_trace_chunk_get_name(
                struct lttng_trace_chunk *chunk, const char **name,
-               bool *name_overriden);
+               bool *name_overridden);
 
 LTTNG_HIDDEN
 enum lttng_trace_chunk_status lttng_trace_chunk_override_name(
This page took 0.030114 seconds and 4 git commands to generate.