[lttng-dev] [PATCH lttng-tools 2/2] Fix: typo 'convet' -> 'convert'

2018-11-15 Thread Michael Jeanson
Signed-off-by: Michael Jeanson 
---
 src/common/lttng-elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/lttng-elf.c b/src/common/lttng-elf.c
index 52e05f0c6..cb01f7bb7 100644
--- a/src/common/lttng-elf.c
+++ b/src/common/lttng-elf.c
@@ -861,7 +861,7 @@ int lttng_elf_get_symbol_offset(int fd, char *symbol, 
uint64_t *offset)
 */
ret = lttng_elf_convert_addr_in_text_to_offset(elf, addr, offset);
if (ret) {
-   DBG("Cannot convet addr to offset.");
+   DBG("Cannot convert addr to offset.");
goto free_string_table_data;
}
 
-- 
2.17.1

___
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[lttng-dev] [PATCH lttng-tools 1/2] Fix: typo 'leat' -> 'least'

2018-11-15 Thread Michael Jeanson
Signed-off-by: Michael Jeanson 
---
 src/common/defaults.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/defaults.c b/src/common/defaults.c
index 3bb42280f..874578183 100644
--- a/src/common/defaults.c
+++ b/src/common/defaults.c
@@ -118,7 +118,7 @@ static void __attribute__((constructor)) 
init_default_pthread_attr(void)
}
 
if (rlim.rlim_max > 0 && selected_ss > rlim.rlim_max) {
-   WARN("Your system's stack size restrictions (%zu bytes) may be 
too low for the LTTng daemons to function properly, please set the stack size 
limit to at leat %zu bytes to ensure reliable operation",
+   WARN("Your system's stack size restrictions (%zu bytes) may be 
too low for the LTTng daemons to function properly, please set the stack size 
limit to at least %zu bytes to ensure reliable operation",
(size_t) rlim.rlim_max, (size_t) 
DEFAULT_LTTNG_THREAD_STACK_SIZE);
selected_ss = (size_t) rlim.rlim_max;
}
-- 
2.17.1

___
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[lttng-dev] [PATCH lttng-tools 1/2] Fix: typo 'retrive' -> 'retrieve'

2018-11-15 Thread Michael Jeanson
Signed-off-by: Michael Jeanson 
---
 src/bin/lttng/commands/add_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/lttng/commands/add_context.c 
b/src/bin/lttng/commands/add_context.c
index 2c29a45ca..7aef4d50f 100644
--- a/src/bin/lttng/commands/add_context.c
+++ b/src/bin/lttng/commands/add_context.c
@@ -541,7 +541,7 @@ int mi_open(void)
 
ret = fileno(stdout);
if (ret < 0) {
-   PERROR("Unable to retrive fileno of stdout");
+   PERROR("Unable to retrieve fileno of stdout");
ret = CMD_ERROR;
goto end;
}
-- 
2.17.1

___
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[lttng-dev] [PATCH lttng-tools 2/2] Fix: typo 'occured' -> 'occurred'

2018-11-15 Thread Michael Jeanson
Signed-off-by: Michael Jeanson 
---
 src/bin/lttng-relayd/main.c | 4 ++--
 src/bin/lttng-sessiond/cmd.c| 6 +++---
 src/bin/lttng-sessiond/notification-thread-events.c | 4 ++--
 src/bin/lttng-sessiond/rotation-thread.c| 4 ++--
 src/bin/lttng-sessiond/session.h| 4 ++--
 src/bin/lttng-sessiond/ust-app.h| 2 +-
 src/bin/lttng/commands/enable_rotation.c| 2 +-
 src/common/kernel-consumer/kernel-consumer.c| 4 ++--
 src/common/ust-consumer/ust-consumer.c  | 4 ++--
 9 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c
index 1e2e9050f..09aeb33e0 100644
--- a/src/bin/lttng-relayd/main.c
+++ b/src/bin/lttng-relayd/main.c
@@ -85,7 +85,7 @@ NULL
 
 enum relay_connection_status {
RELAY_CONNECTION_STATUS_OK,
-   /* An error occured while processing an event on the connection. */
+   /* An error occurred while processing an event on the connection. */
RELAY_CONNECTION_STATUS_ERROR,
/* Connection closed/shutdown cleanly. */
RELAY_CONNECTION_STATUS_CLOSED,
@@ -1640,7 +1640,7 @@ int rotate_truncate_stream(struct relay_stream *stream)
 
/*
 * Rewind the current tracefile to the position at which the rotation
-* should have occured.
+* should have occurred.
 */
lseek_ret = lseek(stream->stream_fd->fd,
stream->pos_after_last_complete_data_index, SEEK_SET);
diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c
index 545269525..de6f67d48 100644
--- a/src/bin/lttng-sessiond/cmd.c
+++ b/src/bin/lttng-sessiond/cmd.c
@@ -2725,7 +2725,7 @@ int cmd_stop_trace(struct ltt_session *session)
struct ltt_kernel_channel *kchan;
struct ltt_kernel_session *ksession;
struct ltt_ust_session *usess;
-   bool error_occured = false;
+   bool error_occurred = false;
 
assert(session);
 
@@ -2762,7 +2762,7 @@ int cmd_stop_trace(struct ltt_session *session)
 * This error should not prevent the user from stopping
 * the session. However, it will be reported at the end.
 */
-   error_occured = true;
+   error_occurred = true;
}
}
 
@@ -2815,7 +2815,7 @@ int cmd_stop_trace(struct ltt_session *session)
 
/* Flag inactive after a successful stop. */
session->active = 0;
-   ret = !error_occured ? LTTNG_OK : LTTNG_ERR_UNK;
+   ret = !error_occurred ? LTTNG_OK : LTTNG_ERR_UNK;
 
 error:
return ret;
diff --git a/src/bin/lttng-sessiond/notification-thread-events.c 
b/src/bin/lttng-sessiond/notification-thread-events.c
index f29c1ef17..040ae5f28 100644
--- a/src/bin/lttng-sessiond/notification-thread-events.c
+++ b/src/bin/lttng-sessiond/notification-thread-events.c
@@ -1533,7 +1533,7 @@ int handle_notification_thread_command_add_channel(
session_info = find_or_create_session_info(state, session_name,
session_uid, session_gid);
if (!session_info) {
-   /* Allocation error or an internal error occured. */
+   /* Allocation error or an internal error occurred. */
goto error;
}
 
@@ -1698,7 +1698,7 @@ int handle_notification_thread_command_session_rotation(
session_info = find_or_create_session_info(state, session_name,
session_uid, session_gid);
if (!session_info) {
-   /* Allocation error or an internal error occured. */
+   /* Allocation error or an internal error occurred. */
ret = -1;
cmd_result = LTTNG_ERR_NOMEM;
goto end;
diff --git a/src/bin/lttng-sessiond/rotation-thread.c 
b/src/bin/lttng-sessiond/rotation-thread.c
index df70f8fd5..cf0e7ed97 100644
--- a/src/bin/lttng-sessiond/rotation-thread.c
+++ b/src/bin/lttng-sessiond/rotation-thread.c
@@ -857,7 +857,7 @@ int handle_notification_channel(int fd,
status = lttng_notification_channel_has_pending_notification(
rotate_notification_channel, ¬ification_pending);
if (status != LTTNG_NOTIFICATION_CHANNEL_STATUS_OK) {
-   ERR("[rotation-thread ]Error occured while checking for pending 
notification");
+   ERR("[rotation-thread ]Error occurred while checking for 
pending notification");
ret = -1;
goto end;
}
@@ -975,7 +975,7 @@ void *thread_rotation(void *data)
ret = handle_notification_channel(fd, handle,
&thread);
if (ret) {
-   ERR("[rotation-thread] Error occured 
while handling activity on notification channel socket");
+