summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2018-06-18 22:43:12 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit8376cf556f1457667dd0686b0c5d42fd8ad981e8 (patch)
tree1e31c06b975b5d54d98ffb4c3c862ced7748f099 /src
parent67fc24ad8f1d07931e15487743d4ed51c86da0f7 (diff)
Correct a number of trivial typos.
Diffstat (limited to 'src')
-rw-r--r--src/libelogind/sd-event/test-event.c2
-rw-r--r--src/test/test-procfs-util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libelogind/sd-event/test-event.c b/src/libelogind/sd-event/test-event.c
index 82b5c6550..2eb022362 100644
--- a/src/libelogind/sd-event/test-event.c
+++ b/src/libelogind/sd-event/test-event.c
@@ -190,7 +190,7 @@ static void test_basic(void) {
got_a = false, got_b = false, got_c = false, got_d = 0;
- /* Add a oneshot handler, trigger it, re-enable it, and trigger
+ /* Add a oneshot handler, trigger it, reenable it, and trigger
* it again. */
assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
diff --git a/src/test/test-procfs-util.c b/src/test/test-procfs-util.c
index 811e312ec..35381f264 100644
--- a/src/test/test-procfs-util.c
+++ b/src/test/test-procfs-util.c
@@ -21,7 +21,7 @@ int main(int argc, char *argv[]) {
#if 0 /// UNSUPPORTED by elogind (we aren't init)
assert_se(procfs_cpu_get_usage(&nsec) >= 0);
- log_info("Current sytem CPU time: %s", format_timespan(buf, sizeof(buf), nsec/NSEC_PER_USEC, 1));
+ log_info("Current system CPU time: %s", format_timespan(buf, sizeof(buf), nsec/NSEC_PER_USEC, 1));
assert_se(procfs_memory_get_current(&v) >= 0);
log_info("Current memory usage: %s", format_bytes(buf, sizeof(buf), v));