mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
debug: avoid to slashes in debug message
This commit is contained in:
parent
e70d5d470c
commit
cff16b062b
@ -1522,7 +1522,7 @@ struct device *dev_cache_get_by_devt(struct cmd_context *cmd, dev_t dev, struct
|
|||||||
sysfs_dir = dm_sysfs_dir();
|
sysfs_dir = dm_sysfs_dir();
|
||||||
if (sysfs_dir && *sysfs_dir) {
|
if (sysfs_dir && *sysfs_dir) {
|
||||||
/* First check if dev is sysfs to avoid useless scan */
|
/* 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) {
|
sysfs_dir, (int)MAJOR(dev), (int)MINOR(dev)) < 0) {
|
||||||
log_error("dm_snprintf partition failed.");
|
log_error("dm_snprintf partition failed.");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user