Skip to content

Commit

Permalink
Clean-up typos: encoutered -> encountered
Browse files Browse the repository at this point in the history
For some reason, this typo is present all over the project. I'll practice
writting that word over the week-end.

Change-Id: Ifc6b0d205de8792c1a96cbac009fd5abdfb36199
Signed-off-by: Jérémie Galarneau <[email protected]>
  • Loading branch information
jgalar committed Jan 17, 2025
1 parent cc660bb commit b3c7d24
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/bin/lttng-relayd/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static int rotate_truncate_stream(struct relay_stream *stream)
struct lttng_trace_chunk *previous_chunk = nullptr;

if (!LTTNG_OPTIONAL_GET(stream->ongoing_rotation).next_trace_chunk) {
ERR("Protocol error encoutered in %s(): stream rotation "
ERR("Protocol error encountered in %s(): stream rotation "
"sequence number is before the current sequence number "
"and the next trace chunk is unset. Honoring this "
"rotation command would result in data loss",
Expand Down
2 changes: 1 addition & 1 deletion src/bin/lttng-sessiond/action-executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static int client_handle_transmission_status(struct notification_client *client,
client->id);
break;
default:
ERR("Fatal error encoutered while sending notification to client, client_id = %" PRIu64,
ERR("Fatal error encountered while sending notification to client, client_id = %" PRIu64,
client->id);
ret = -1;
goto end;
Expand Down
8 changes: 4 additions & 4 deletions src/bin/lttng-sessiond/notification-thread-events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3502,7 +3502,7 @@ int handle_notification_thread_client_disconnect(int client_socket,

int handle_notification_thread_client_disconnect_all(struct notification_thread_state *state)
{
bool error_encoutered = false;
bool error_encountered = false;

DBG("Closing all client connections");

Expand All @@ -3514,11 +3514,11 @@ int handle_notification_thread_client_disconnect_all(struct notification_thread_

ret = notification_thread_client_disconnect(client, state);
if (ret) {
error_encoutered = true;
error_encountered = true;
}
}

return error_encoutered ? 1 : 0;
return error_encountered ? 1 : 0;
}

int handle_notification_thread_trigger_unregister_all(struct notification_thread_state *state)
Expand Down Expand Up @@ -4742,7 +4742,7 @@ dispatch_one_event_notifier_notification(struct notification_thread_state *state
case ACTION_EXECUTOR_STATUS_INVALID:
case ACTION_EXECUTOR_STATUS_ERROR:
/* Fatal error, shut down everything. */
ERR("Fatal error encoutered while enqueuing action to the action executor");
ERR("Fatal error encountered while enqueuing action to the action executor");
ret = -1;
goto end_unlock;
default:
Expand Down
2 changes: 1 addition & 1 deletion src/bin/lttng-sessiond/ust-registry-session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void destroy_channel(lsu::registry_channel *chan, bool notify) noexcept
ust_registry_channel_destroy_event(chan, event);
}
} catch (const lttng::out_of_range& ex) {
ERR_FMT("Corrupted channel events hash table encoutered while destroying channel: {}",
ERR_FMT("Corrupted channel events hash table encountered while destroying channel: {}",
ex.what());
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/bin/lttng/commands/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ static int list_process_attr_tracker(enum lttng_process_attr process_attr)
ret = CMD_SUCCESS;
goto end;
default:
ERR("Unknown tracking policy encoutered while listing the %s process attribute tracker of session `%s`",
ERR("Unknown tracking policy encountered while listing the %s process attribute tracker of session `%s`",
lttng_process_attr_to_string(process_attr),
the_handle->session_name);
ret = CMD_FATAL;
Expand Down
2 changes: 1 addition & 1 deletion src/common/conditions/event-rule-matches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ static struct lttng_event_expr *event_expr_from_payload(struct lttng_payload_vie
break;
}
default:
ERR("Invalid event expression type encoutered while deserializing event expression: type = %" PRIu64,
ERR("Invalid event expression type encountered while deserializing event expression: type = %" PRIu64,
type);
goto error;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/tools/live/live_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ static int get_next_index()
if (first_packet_stream_id < 0) {
/*
* Initialize the first packet stream id. That is,
* the first active stream encoutered.
* the first active stream encountered.
*/
first_packet_offset = be64toh(rp.offset);
first_packet_len = be64toh(rp.packet_size) / CHAR_BIT;
Expand Down

0 comments on commit b3c7d24

Please sign in to comment.