diff --git a/lib/filters/filter-sysfs.c b/lib/filters/filter-sysfs.c index b626144b2..32ac324dd 100644 --- a/lib/filters/filter-sysfs.c +++ b/lib/filters/filter-sysfs.c @@ -218,14 +218,14 @@ static int _read_devs(struct dev_set *ds, const char *dir, unsigned sysfs_depth) if (dm_snprintf(path, sizeof(path), "%s/%s", dir, d->d_name) < 0) { - log_warn("WARGNING: sysfs path name too long: %s in %s.", + log_warn("WARNING: sysfs path name too long: %s in %s.", d->d_name, dir); continue; } /* devices have a "dev" file */ if (dm_snprintf(file, sizeof(file), "%s/dev", path) < 0) { - log_warn("WARGNING: sysfs path name too long: %s in %s.", + log_warn("WARNING: sysfs path name too long: %s in %s.", d->d_name, dir); continue; }