]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: fix typo in comment
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Jul 2023 17:39:13 +0000 (02:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Jul 2023 17:39:16 +0000 (02:39 +0900)
Follow-ups for ded2b1d0933b24d5e0a503e3bd37f8030a11d9a7 and
3327877ca332ad8188acd608807c64470a845125.

src/udev/udev-builtin-net_id.c

index fe89ffb1337a2d19febf3e383af43b9b6f3c96d8..a1aba19cba1a33eacef9705bc0055faa6518331b 100644 (file)
@@ -317,7 +317,7 @@ static int parse_hotplug_slot_from_function_id(sd_device *dev, int slots_dirfd,
                 return log_device_debug_errno(dev, errno, "Cannot access %s under pci slots, ignoring: %m", filename);
 
         *ret = (uint32_t) function_id;
-        return 1; /* Found. We shoud ignore domain part. */
+        return 1; /* Found. We should ignore domain part. */
 }
 
 static int dev_pci_slot(sd_device *dev, const LinkInfo *info, NetNames *names) {
@@ -545,7 +545,7 @@ static int names_vio(sd_device *dev, const char *prefix, bool test) {
                 return log_device_debug_errno(dev, SYNTHETIC_ERRNO(EINVAL),
                                               "VIO bus ID and slot ID contain invalid characters: %s", s);
 
-        /* Parse only slot ID (tha last 4 hexdigits). */
+        /* Parse only slot ID (the last 4 hexdigits). */
         r = safe_atou_full(s + 4, 16, &slotid);
         if (r < 0)
                 return log_device_debug_errno(dev, r, "Failed to parse VIO slot from syspath \"%s\": %m", syspath);