From: mjeanson@efficios.com (Michael Jeanson)
Subject: [lttng-dev] [PATCH lttng-tools 1/2] Typo: occured -> occurred
Date: Tue, 24 May 2016 14:28:45 -0400 [thread overview]
Message-ID: <1464114526-23767-1-git-send-email-mjeanson@efficios.com> (raw)
Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
doc/proposals/0006-lttng-snapshot.txt | 2 +-
include/lttng/lttng-error.h | 2 +-
src/bin/lttng-crash/lttng-crash.c | 2 +-
src/bin/lttng/commands/disable_events.c | 2 +-
src/bin/lttng/commands/set_session.c | 2 +-
src/bin/lttng/commands/snapshot.c | 2 +-
src/common/config/session-config.h | 2 +-
src/common/consumer/consumer.c | 4 ++--
src/common/error.c | 2 +-
src/common/kernel-consumer/kernel-consumer.c | 4 ++--
src/common/readwrite.c | 2 +-
src/common/readwrite.h | 2 +-
src/common/ust-consumer/ust-consumer.c | 4 ++--
13 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/doc/proposals/0006-lttng-snapshot.txt b/doc/proposals/0006-lttng-snapshot.txt
index 399fcca..1a012c4 100644
--- a/doc/proposals/0006-lttng-snapshot.txt
+++ b/doc/proposals/0006-lttng-snapshot.txt
@@ -154,7 +154,7 @@ ssize_t lttng_snapshot_list_output(struct lttng_handle *handle,
* the date and time will be used for the directory name.
*
* This is a blocking call meaning that it will return only if the snapshot is
- * completed or an error occured. For now, no-wait is not supported but we keep
+ * completed or an error occurred. For now, no-wait is not supported but we keep
* a parameter for that future case. The wait param is ignored.
*
* Return 0 on success or else a negative LTTNG_ERR* code.
diff --git a/include/lttng/lttng-error.h b/include/lttng/lttng-error.h
index c963223..72194ef 100644
--- a/include/lttng/lttng-error.h
+++ b/include/lttng/lttng-error.h
@@ -137,7 +137,7 @@ enum lttng_error_code {
LTTNG_ERR_PID_TRACKED = 114, /* PID already tracked */
LTTNG_ERR_PID_NOT_TRACKED = 115, /* PID not tracked */
LTTNG_ERR_INVALID_CHANNEL_DOMAIN = 116, /* Invalid channel domain */
- LTTNG_ERR_OVERFLOW = 117, /* Overflow occured. */
+ LTTNG_ERR_OVERFLOW = 117, /* Overflow occurred. */
LTTNG_ERR_SESSION_NOT_STARTED = 118, /* Session not started */
LTTNG_ERR_LIVE_SESSION = 119, /* Live session unsupported */
LTTNG_ERR_PER_PID_SESSION = 120, /* Per-PID sessions unsupported */
diff --git a/src/bin/lttng-crash/lttng-crash.c b/src/bin/lttng-crash/lttng-crash.c
index 65fca36..ba28af9 100644
--- a/src/bin/lttng-crash/lttng-crash.c
+++ b/src/bin/lttng-crash/lttng-crash.c
@@ -1137,7 +1137,7 @@ int delete_dir_recursive(const char *path)
ret = delete_dir_recursive(subpath);
free(subpath);
if (ret) {
- /* Error occured, abort traversal. */
+ /* Error occurred, abort traversal. */
goto end;
}
} else if (S_ISREG(st.st_mode)) {
diff --git a/src/bin/lttng/commands/disable_events.c b/src/bin/lttng/commands/disable_events.c
index e301b71..238f846 100644
--- a/src/bin/lttng/commands/disable_events.c
+++ b/src/bin/lttng/commands/disable_events.c
@@ -467,7 +467,7 @@ end:
ret = ret ? ret : LTTNG_ERR_MI_IO_FAIL;
}
- /* Overwrite ret if an error occured in disable_events */
+ /* Overwrite ret if an error occurred in disable_events */
ret = command_ret ? command_ret : ret;
poptFreeContext(pc);
diff --git a/src/bin/lttng/commands/set_session.c b/src/bin/lttng/commands/set_session.c
index 4a41d90..32e9a5d 100644
--- a/src/bin/lttng/commands/set_session.c
+++ b/src/bin/lttng/commands/set_session.c
@@ -241,7 +241,7 @@ end:
ret = ret ? ret : LTTNG_ERR_MI_IO_FAIL;
}
- /* Overwrite ret if an error occured during set_session() */
+ /* Overwrite ret if an error occurred during set_session() */
ret = command_ret ? command_ret : ret;
poptFreeContext(pc);
diff --git a/src/bin/lttng/commands/snapshot.c b/src/bin/lttng/commands/snapshot.c
index c8a7ba0..d948226 100644
--- a/src/bin/lttng/commands/snapshot.c
+++ b/src/bin/lttng/commands/snapshot.c
@@ -636,7 +636,7 @@ end:
free(session_name);
}
- /* Overwrite ret if an error occured during handle_command */
+ /* Overwrite ret if an error occurred during handle_command */
ret = command_ret ? command_ret : ret;
poptFreeContext(pc);
return ret;
diff --git a/src/common/config/session-config.h b/src/common/config/session-config.h
index a53a8f9..939cb6c 100644
--- a/src/common/config/session-config.h
+++ b/src/common/config/session-config.h
@@ -57,7 +57,7 @@ typedef int (*config_entry_handler_cb)(const struct config_entry *, void *);
* "", only the global entries are relayed.
*
* Returns 0 on success. Negative values are error codes. If the return value
- * is positive, it represents the line number on which a parsing error occured.
+ * is positive, it represents the line number on which a parsing error occurred.
*/
LTTNG_HIDDEN
int config_get_section_entries(const char *path, const char *section,
diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c
index e182c99..5c14dd1 100644
--- a/src/common/consumer/consumer.c
+++ b/src/common/consumer/consumer.c
@@ -2374,7 +2374,7 @@ restart:
len = ctx->on_buffer_ready(stream, ctx);
/*
* We don't check the return value here since if we get
- * a negative len, it means an error occured thus we
+ * a negative len, it means an error occurred thus we
* simply remove it from the poll set and free the
* stream.
*/
@@ -2401,7 +2401,7 @@ restart:
len = ctx->on_buffer_ready(stream, ctx);
/*
* We don't check the return value here since if we get
- * a negative len, it means an error occured thus we
+ * a negative len, it means an error occurred thus we
* simply remove it from the poll set and free the
* stream.
*/
diff --git a/src/common/error.c b/src/common/error.c
index 84bc04f..bc42577 100644
--- a/src/common/error.c
+++ b/src/common/error.c
@@ -178,7 +178,7 @@ static const char *error_string_array[] = {
[ ERROR_INDEX(LTTNG_ERR_PID_TRACKED) ] = "PID already tracked",
[ ERROR_INDEX(LTTNG_ERR_PID_NOT_TRACKED) ] = "PID not tracked",
[ ERROR_INDEX(LTTNG_ERR_INVALID_CHANNEL_DOMAIN) ] = "Invalid channel domain",
- [ ERROR_INDEX(LTTNG_ERR_OVERFLOW) ] = "Overflow occured",
+ [ ERROR_INDEX(LTTNG_ERR_OVERFLOW) ] = "Overflow occurred",
[ ERROR_INDEX(LTTNG_ERR_SESSION_NOT_STARTED) ] = "Session not started",
[ ERROR_INDEX(LTTNG_ERR_LIVE_SESSION) ] = "Live sessions are not supported",
[ ERROR_INDEX(LTTNG_ERR_PER_PID_SESSION) ] = "Per-PID tracing sessions are not supported",
diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c
index 3216903..b1cc03e 100644
--- a/src/common/kernel-consumer/kernel-consumer.c
+++ b/src/common/kernel-consumer/kernel-consumer.c
@@ -1186,8 +1186,8 @@ int update_stream_stats(struct lttng_consumer_stream *stream)
}
if (discarded < stream->last_discarded_events) {
/*
- * Overflow has occured. We assume only one wrap-around
- * has occured.
+ * Overflow has occurred. We assume only one wrap-around
+ * has occurred.
*/
stream->chan->discarded_events += (1ULL << (CAA_BITS_PER_LONG - 1)) -
stream->last_discarded_events + discarded;
diff --git a/src/common/readwrite.c b/src/common/readwrite.c
index 42a048f..0e8684e 100644
--- a/src/common/readwrite.c
+++ b/src/common/readwrite.c
@@ -28,7 +28,7 @@
* Upon success, they return the "count" received as parameter.
* They can return a negative value if an error occurs.
* If a value lower than the requested "count" is returned, it means an
- * error occured.
+ * error occurred.
* The error can be checked by querying errno.
*/
LTTNG_HIDDEN
diff --git a/src/common/readwrite.h b/src/common/readwrite.h
index ab22fdc..557ed0a 100644
--- a/src/common/readwrite.h
+++ b/src/common/readwrite.h
@@ -26,7 +26,7 @@
* Upon success, they return the "count" received as parameter.
* They can return a negative value if an error occurs.
* If a value lower than the requested "count" is returned, it means an
- * error occured.
+ * error occurred.
* The error can be checked by querying errno.
*/
LTTNG_HIDDEN
diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c
index 89109b9..01d5ecf 100644
--- a/src/common/ust-consumer/ust-consumer.c
+++ b/src/common/ust-consumer/ust-consumer.c
@@ -2398,8 +2398,8 @@ int update_stream_stats(struct lttng_consumer_stream *stream)
}
if (discarded < stream->last_discarded_events) {
/*
- * Overflow has occured. We assume only one wrap-around
- * has occured.
+ * Overflow has occurred. We assume only one wrap-around
+ * has occurred.
*/
stream->chan->discarded_events +=
(1ULL << (CAA_BITS_PER_LONG - 1)) -
--
2.7.4
next reply other threads:[~2016-05-24 18:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-24 18:28 Michael Jeanson [this message]
2016-05-24 18:28 ` [lttng-dev] [PATCH lttng-tools 2/2] Typo: Stoping -> Stopping Michael Jeanson
2016-05-24 20:03 ` Jérémie Galarneau
2016-05-24 20:03 ` [lttng-dev] [PATCH lttng-tools 1/2] Typo: occured -> occurred Jérémie Galarneau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1464114526-23767-1-git-send-email-mjeanson@efficios.com \
--to=mjeanson@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox