]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: fix typo
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Aug 2022 17:43:38 +0000 (02:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Aug 2022 17:43:38 +0000 (02:43 +0900)
man/systemd-sleep.conf.xml
src/basic/math-util.h
src/resolve/resolved-dns-transaction.c
src/sleep/sleep.c
src/test/test-copy.c
tmpfiles.d/provision.conf

index 2f04ce84a15dce9b42dcb463162e56e94d883bdf..8b9ddd6e7dd04431f0fc7aa53f9be95f80ed476c 100644 (file)
@@ -80,7 +80,7 @@
         <listitem><para>A low power state where the system is initially suspended
         (the state is stored in RAM) and then hibernated based on battery percentage
         capacity. If the current battery capacity is higher than 5%, the system goes
-        back to suspend for interval calculated using battery disharge rate per hour.
+        back to suspend for interval calculated using battery discharge rate per hour.
         Battery discharge rate per hour is stored in a file which is created after
         initial suspend-resume cycle. The value is calculated using battery decreasing
         charge level a timespan. In case of manual wakeup before RTC alarm, the timespan
index 125e0c6209296b4cea812f777074f16e24bb9aae..24023cd2be35c0c9cdbd8b93d3cde24ed3f8eed3 100644 (file)
@@ -9,6 +9,6 @@
  * The argument must be a floating point, i.e. one of float, double, or long double. */
 #define iszero_safe(x) (fpclassify(x) == FP_ZERO)
 
-/* To avoid x == y and triggering compile warning -Wfloat-equal. This retuns false if one of the argument is
+/* To avoid x == y and triggering compile warning -Wfloat-equal. This returns false if one of the argument is
  * NaN or infinity. One of the argument must be a floating point. */
 #define fp_equal(x, y) iszero_safe((x) - (y))
index 47af540338c1e9295e115664754831a9bb5682fd..328913e1daceff0a8e4c58c914ad0474bb6c1573 100644 (file)
@@ -1920,7 +1920,7 @@ static int dns_transaction_make_packet_mdns(DnsTransaction *t) {
                 ancount = be16toh(DNS_PACKET_HEADER(p)->ancount);
         }
 
-        /* Then, create acctual packet. */
+        /* Then, create actual packet. */
         p = dns_packet_unref(p);
         r = dns_packet_new_query(&p, t->scope->protocol, 0, false);
         if (r < 0)
index a1905dbc2757d6f5c20c4a3439bad80980fb748d..ff6c71d61b6a3a59b3be3c6117366dcb0bc6f648 100644 (file)
@@ -304,7 +304,7 @@ static int execute_s2h(const SleepConfig *sleep_config) {
                         assert(previous_discharge_rate != 0);
                         suspend_interval = usec_sub_unsigned(last_capacity * USEC_PER_HOUR / previous_discharge_rate, 30 * USEC_PER_MINUTE);
                         /* The previous discharge rate is stored in per hour basis so converted to minutes.
-                         * Substracted 30 minutes from the result to keep a buffer of 30 minutes before battery gets critical */
+                         * Subtracted 30 minutes from the result to keep a buffer of 30 minutes before battery gets critical */
                 }
                 log_debug("Set timerfd wake alarm for %s", FORMAT_TIMESPAN(suspend_interval, USEC_PER_SEC));
                 /* Wake alarm for system with or without battery to hibernate or estimate discharge rate whichever is applicable */
index 09e78b920e9ada79906f166d208cdca68a9eb846..4091b425d16b5919977e584b11e122837891e21f 100644 (file)
@@ -66,7 +66,7 @@ TEST(copy_tree_replace_file) {
         assert_se(write_string_file(src, "bar bar", WRITE_STRING_FILE_CREATE) == 0);
         assert_se(write_string_file(dst, "foo foo foo", WRITE_STRING_FILE_CREATE) == 0);
 
-        /* The file exists- now overwite original contents, and test the COPY_REPLACE flag. */
+        /* The file exists- now overwrite original contents, and test the COPY_REPLACE flag. */
 
         assert_se(copy_tree(src, dst, UID_INVALID, GID_INVALID, COPY_REFLINK) == -EEXIST);
 
index 9a4783868fe7759cbbf2af64d8ff6fcd77492b8e..a4d7aaf99b264a3ab56e77d28719aa2b46117960 100644 (file)
@@ -7,7 +7,7 @@
 
 # See tmpfiles.d(5) for details
 
-# Provision additional loging messages from credentials, if they are set. Note
+# Provision additional login messages from credentials, if they are set. Note
 # that these lines are NOPs if the credentials are not set or if the files
 # already exist.
 f^ /etc/motd.d/50-provision.conf - - - - login.motd