]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/sysfs: fix typo
authorKarel Zak <kzak@redhat.com>
Thu, 11 Aug 2022 11:25:30 +0000 (13:25 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 11 Aug 2022 11:25:30 +0000 (13:25 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/sysfs.c

index 84af4fe3cb3c0672acc2bdc324ba71893ec32f3c..219f871d634d6a600ad3f6260dfc20744b066361 100644 (file)
@@ -381,7 +381,7 @@ static char *get_subsystem(char *chain, char *buf, size_t bufsz)
 }
 
 /*
- * Returns complete path to the device, the patch contains all subsystems
+ * Returns complete path to the device, the path contains all subsystems
  * used for the device.
  */
 char *sysfs_blkdev_get_devchain(struct path_cxt *pc, char *buf, size_t bufsz)
@@ -399,7 +399,7 @@ char *sysfs_blkdev_get_devchain(struct path_cxt *pc, char *buf, size_t bufsz)
        if (prefix)
                psz = strlen(prefix);
 
-       /* create absolute patch from the link */
+       /* create absolute path from the link */
        memmove(buf + psz + sizeof(_PATH_SYS_DEVBLOCK "/") - 1, buf, sz);
        if (prefix)
                memcpy(buf, prefix, psz);