From 36b8b9ed5c4b96d3a6482d76ca3eae54c62f9f2b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 24 Oct 2019 16:36:01 +0200 Subject: [PATCH] debug: avoid to slashes in debug message --- lib/device/dev-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;