diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-10-24 16:36:01 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-12-10 15:44:16 +0100 |
commit | cff16b062badbc65661940b021c06d3b1c423562 (patch) | |
tree | b67dcbcab7907a493b76ad53ef6f93212191bbcf | |
parent | e70d5d470c196f81c125c2705c065302608dbfbe (diff) | |
download | lvm2-cff16b062badbc65661940b021c06d3b1c423562.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 3dcfc101c..e17b13f01 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -1522,7 +1522,7 @@ struct device *dev_cache_get_by_devt(struct cmd_context *cmd, dev_t dev, struct 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; |