[systemd-devel] [PATCH] Fix spelling errors using 'codespell' tool

Anatol Pomozov anatol.pomozov at gmail.com
Sun Apr 14 19:42:35 PDT 2013


Hi

On Sun, Apr 14, 2013 at 7:37 PM, Anatol Pomozov
<anatol.pomozov at gmail.com> wrote:
> ---
>  NEWS                          | 10 +++++-----
>  man/sd_journal_get_cursor.xml |  2 +-
>  man/systemctl.xml             |  2 +-
>  man/systemd-system.conf.xml   |  2 +-
>  man/systemd.unit.xml          |  2 +-
>  src/core/syscall-list.h       |  2 +-
>  src/core/umount.c             |  2 +-
>  src/login/logind-dbus.c       |  2 +-
>  src/login/logind.c            |  2 +-
>  src/shared/strbuf.c           |  2 +-
>  src/systemctl/systemctl.c     |  4 ++--
>  src/systemd/sd-bus-protocol.h |  2 +-
>  src/tmpfiles/tmpfiles.c       |  2 +-
>  src/udev/udev-rules.c         |  2 +-
>  test/udev-test.pl             |  2 +-
>  15 files changed, 20 insertions(+), 20 deletions(-)
>
> diff --git a/NEWS b/NEWS
> index 335c31f..9ea3eee 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -136,7 +136,7 @@ CHANGES WITH 199:
>          * The udev daemon now sets the default number of worker
>            processes executed in parallel based on the number of available
>            CPUs instead of the amount of available RAM. This is supposed
> -          to provide a more reliable default and limit a too agressive
> +          to provide a more reliable default and limit a too aggressive
>            paralellism for setups with 1000s of devices connected.
>
>          Contributions from: Auke Kok, Colin Walters, Cristian
> @@ -592,7 +592,7 @@ CHANGES WITH 196:
>            the underlying file system of a journal file is capable of
>            properly reporting file change notifications, or whether
>            applications that want to reflect journal changes "live"
> -          need to recheck journal files continously in appropriate
> +          need to recheck journal files continuously in appropriate
>            time intervals.
>
>          * It is now possible to set the "age" field for tmpfiles
> @@ -925,7 +925,7 @@ CHANGES WITH 190:
>          * There's now a new RPM macro definition for the system preset
>            dir: %_presetdir.
>
> -        * journald will now warn if it can't foward a message to the
> +        * journald will now warn if it can't forward a message to the
>            syslog daemon because it's socket is full.
>
>          * timedated will no longer write or process /etc/timezone,
> @@ -1060,7 +1060,7 @@ CHANGES WITH 188:
>            the maximum number of iterations to run for. It also gained
>            -b, to run in batch mode (accepting no input).
>
> -        * The suffix ".service" may now be ommited on most systemctl
> +        * The suffix ".service" may now be omitted on most systemctl
>            command lines involving service unit names.
>
>          * There's a new bus call in logind to lock all sessions, as
> @@ -1549,7 +1549,7 @@ CHANGES WITH 44:
>
>          * Show /etc/os-release data in systemd-analyze output
>
> -        * Many bugfixes for the journal, including endianess fixes and
> +        * Many bugfixes for the journal, including endianness fixes and
>            ensuring that disk space enforcement works
>
>          * sd-login.h is C++ comptaible again
> diff --git a/man/sd_journal_get_cursor.xml b/man/sd_journal_get_cursor.xml
> index 354168b..1b0e775 100644
> --- a/man/sd_journal_get_cursor.xml
> +++ b/man/sd_journal_get_cursor.xml
> @@ -108,7 +108,7 @@
>                  comparing cursors is not possible. Use this call to
>                  verify after an invocation of
>                  <citerefentry><refentrytitle>sd_journal_seek_cursor</refentrytitle><manvolnum>3</manvolnum></citerefentry>
> -                whether the entry being seeked to was actually found
> +                whether the entry being sought to was actually found
>                  in the journal or the next closest entry was used
>                  instead.</para>
>          </refsect1>
> diff --git a/man/systemctl.xml b/man/systemctl.xml
> index 1bd4af3..a2c3501 100644
> --- a/man/systemctl.xml
> +++ b/man/systemctl.xml
> @@ -755,7 +755,7 @@ kobject-uevent 1 systemd-udevd-kernel.socket systemd-udevd.service
>          unit name, plus a control group specification in the syntax
>          <replaceable>CONTROLLER</replaceable>:<replaceable>PATH</replaceable>
>          or <replaceable>CONTROLLER</replaceable>. In the latter syntax
> -        (where the path is ommitted) the default unit control group
> +        (where the path is omitted) the default unit control group
>          path is implied. Examples: <literal>cpu</literal> or
>          <literal>cpu:/foo/bar</literal>. If a unit is removed from a
>          control group hierarchy all its processes will be moved to the
> diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml
> index eaa770b..d8bfd12 100644
> --- a/man/systemd-system.conf.xml
> +++ b/man/systemd-system.conf.xml
> @@ -155,7 +155,7 @@
>                                  this option is changed, and make sure
>                                  the new configuration file is included
>                                  in it. Otherwise the initrd might
> -                                mount the controller hierachies in a
> +                                mount the controller hierarchies in a
>                                  different configuration than intended,
>                                  and the main system cannot remount
>                                  them anymore.</para></listitem>
> diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
> index 47c5031..26c16de 100644
> --- a/man/systemd.unit.xml
> +++ b/man/systemd.unit.xml
> @@ -380,7 +380,7 @@
>
>                  <para>Note: the paths listed above are set at
>                  compilation time and differ between distributions. The
> -                "authorative" list is printed by
> +                "authoritative" list is printed by
>                  <command>systemd</command> at during start and daemon
>                  reconfiguration.</para>
>
> diff --git a/src/core/syscall-list.h b/src/core/syscall-list.h
> index 503838b..6bb4d91 100644
> --- a/src/core/syscall-list.h
> +++ b/src/core/syscall-list.h
> @@ -24,7 +24,7 @@
>
>  #if defined __x86_64__ && defined __ILP32__
>  /* The x32 ABI defines all of its syscalls with bit 30 set, which causes
> -   issues when attempting to use syscalls as simple indicies into an array.
> +   issues when attempting to use syscalls as simple indices into an array.
>     Instead, use the syscall id & ~SYSCALL_MASK as the index, and | the
>     internal id with the syscall mask as needed.
>  */
> diff --git a/src/core/umount.c b/src/core/umount.c
> index 8c69e74..acfbbe5 100644
> --- a/src/core/umount.c
> +++ b/src/core/umount.c
> @@ -418,7 +418,7 @@ static int mount_points_list_umount(MountPoint **head, bool *changed, bool log_e
>                           *
>                           * Mount points can be stacked. If a mount
>                           * point is stacked below / or /usr, we
> -                         * cannnot umount or remount it directly,
> +                         * cannot umount or remount it directly,
>                           * since there is no way to refer to the
>                           * underlying mount. There's nothing we can do
>                           * about it for the general case, but we can
> diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
> index 230dd2b..6e5f406 100644
> --- a/src/login/logind-dbus.c
> +++ b/src/login/logind-dbus.c
> @@ -66,7 +66,7 @@
>          "  <method name=\"CreateSession\">\n"                           \
>          "   <arg name=\"uid\" type=\"u\" direction=\"in\"/>\n"          \
>          "   <arg name=\"leader\" type=\"u\" direction=\"in\"/>\n"       \
> -        "   <arg name=\"sevice\" type=\"s\" direction=\"in\"/>\n"       \
> +        "   <arg name=\"service\" type=\"s\" direction=\"in\"/>\n"       \

I am not sure about this change though. "sevice" looks like a spelling
as later in code this field is called "service". dbus gurus could you
please check what name should be used here?

>          "   <arg name=\"type\" type=\"s\" direction=\"in\"/>\n"         \
>          "   <arg name=\"class\" type=\"s\" direction=\"in\"/>\n"        \
>          "   <arg name=\"seat\" type=\"s\" direction=\"in\"/>\n"         \
> diff --git a/src/login/logind.c b/src/login/logind.c
> index c9e492f..63422f4 100644
> --- a/src/login/logind.c
> +++ b/src/login/logind.c
> @@ -1726,7 +1726,7 @@ int main(int argc, char *argv[]) {
>
>          /* Always create the directories people can create inotify
>           * watches in. Note that some applications might check for the
> -         * existance of /run/systemd/seats/ to determine whether
> +         * existence of /run/systemd/seats/ to determine whether
>           * logind is available, so please always make sure this check
>           * stays in. */
>          mkdir_label("/run/systemd/seats", 0755);
> diff --git a/src/shared/strbuf.c b/src/shared/strbuf.c
> index e64f1ca..01a076c 100644
> --- a/src/shared/strbuf.c
> +++ b/src/shared/strbuf.c
> @@ -26,7 +26,7 @@
>  #include "strbuf.h"
>
>  /*
> - * Strbuf stores given strings in a single continous allocated memory
> + * Strbuf stores given strings in a single continuous allocated memory
>   * area. Identical strings are de-duplicated and return the same offset
>   * as the first string stored. If the tail of a string already exists
>   * in the buffer, the tail is returned.
> diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
> index 12dce3c..3656722 100644
> --- a/src/systemctl/systemctl.c
> +++ b/src/systemctl/systemctl.c
> @@ -4494,7 +4494,7 @@ static int systemctl_help(void) {
>                 "     --fail           When queueing a new job, fail if conflicting jobs are\n"
>                 "                      pending\n"
>                 "     --irreversible   Create jobs which cannot be implicitly cancelled\n"
> -               "     --show-types     When showing sockets, explictly show their type\n"
> +               "     --show-types     When showing sockets, explicitly show their type\n"
>                 "     --ignore-dependencies\n"
>                 "                      When queueing a new job, ignore all its dependencies\n"
>                 "  -i --ignore-inhibitors\n"
> @@ -4794,7 +4794,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
>                                          continue;
>                                  }
>
> -                                log_error("Unkown unit type or load state '%s'.", type);
> +                                log_error("Unknown unit type or load state '%s'.", type);
>                                  log_info("Use -t help to see a list of allowed values.");
>                                  return -EINVAL;
>                          }
> diff --git a/src/systemd/sd-bus-protocol.h b/src/systemd/sd-bus-protocol.h
> index 7922f6b..a26d27c 100644
> --- a/src/systemd/sd-bus-protocol.h
> +++ b/src/systemd/sd-bus-protocol.h
> @@ -66,7 +66,7 @@ enum {
>          SD_BUS_TYPE_DICT_ENTRY_END   = '}',
>  };
>
> -/* Endianess */
> +/* Endianness */
>
>  enum {
>          _SD_BUS_INVALID_ENDIAN = 0,
> diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
> index 5d32bd1..fea1ca2 100644
> --- a/src/tmpfiles/tmpfiles.c
> +++ b/src/tmpfiles/tmpfiles.c
> @@ -743,7 +743,7 @@ static int create_item(Item *i) {
>
>                  if (have_effective_cap(CAP_MKNOD) == 0) {
>                          /* In a container we lack CAP_MKNOD. We
> -                        shouldnt attempt to create the device node in
> +                        shouldn't attempt to create the device node in
>                          that case to avoid noise, and we don't support
>                          virtualized devices in containers anyway. */
>
> diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
> index d2810a0..7a4fb70 100644
> --- a/src/udev/udev-rules.c
> +++ b/src/udev/udev-rules.c
> @@ -55,7 +55,7 @@ struct udev_rules {
>          unsigned int token_cur;
>          unsigned int token_max;
>
> -        /* all key strings are copied and de-duplicated in a single continous string buffer */
> +        /* all key strings are copied and de-duplicated in a single continuous string buffer */
>          struct strbuf *strbuf;
>
>          /* during rule parsing, uid/gid lookup results are cached */
> diff --git a/test/udev-test.pl b/test/udev-test.pl
> index a9f5db0..23f1b72 100755
> --- a/test/udev-test.pl
> +++ b/test/udev-test.pl
> @@ -1518,7 +1518,7 @@ if ($list[0]) {
>          }
>  }
>
> -print "$error errors occured\n\n";
> +print "$error errors occurred\n\n";
>
>  # cleanup
>  system("rm", "-rf", "$udev_dev");
> --
> 1.8.2.1
>


More information about the systemd-devel mailing list