diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-10-24 16:36:01 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-10-26 00:29:44 +0200 |
commit | 36b8b9ed5c4b96d3a6482d76ca3eae54c62f9f2b (patch) | |
tree | 3362aec4f8477df0b6632325271193b1ede8bd02 | |
parent | cd39b67b7e91c06937d422b1f230b3b3f6e5a1ca (diff) | |
download | lvm2-36b8b9ed5c4b96d3a6482d76ca3eae54c62f9f2b.tar.gz |
debug: avoid to slashes in debug message
-rw-r--r-- | lib/device/dev-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index a429b100a..f705ea3c7 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -1590,7 +1590,7 @@ struct device *dev_cache_get_by_devt(dev_t dev, struct dev_filter *f) sysfs_dir = dm_sysfs_dir(); if (sysfs_dir && *sysfs_dir) { /* First check if dev is sysfs to avoid useless scan */ - if (dm_snprintf(path, sizeof(path), "%s/dev/block/%d:%d", + if (dm_snprintf(path, sizeof(path), "%sdev/block/%d:%d", sysfs_dir, (int)MAJOR(dev), (int)MINOR(dev)) < 0) { log_error("dm_snprintf partition failed."); return NULL; |