From: Karel Zak Date: Thu, 11 Aug 2022 11:25:30 +0000 (+0200) Subject: lib/sysfs: fix typo X-Git-Tag: v2.39-rc1~551 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b8cd3a55f0a460bc1311858760312baea0c4de1;p=thirdparty%2Futil-linux.git lib/sysfs: fix typo Signed-off-by: Karel Zak --- diff --git a/lib/sysfs.c b/lib/sysfs.c index 84af4fe3cb..219f871d63 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -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);