stable-2.02 - debug: avoid to slashes in debug message
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=36b8b9ed5c4b96d3a6482d76ca3eae54c62f9f2b Commit: 36b8b9ed5c4b96d3a6482d76ca3eae54c62f9f2b Parent: cd39b67b7e91c06937d422b1f230b3b3f6e5a1ca Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Oct 24 16:36:01 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Oct 26 00:29:44 2019 +0200
debug: avoid to slashes in debug message
--- lib/device/dev-cache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/device/dev-cache.c +1 -1
@@ -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 ;