chiark / gitweb /
Correct a number of trivial typos.
authorChris Lamb <chris@chris-lamb.co.uk>
Mon, 18 Jun 2018 20:43:12 +0000 (22:43 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/libelogind/sd-event/test-event.c
src/test/test-procfs-util.c

index 82b5c6550ba67050a220c3506c0f7c48a7cfbbf3..2eb022362ab8248332cd090b8dd828bae6275469 100644 (file)
@@ -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);
index 811e312ec8468931edc303f6b61a09acc9548ad5..35381f264140cc6822a59a6b03ffe3c6e1a4926b 100644 (file)
@@ -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));