mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Cast MINOR() in _md_sysfs_attribute_snprintf()'s dm_snprintf() call.
This commit is contained in:
parent
6111e048a3
commit
69c7e1f754
@ -149,7 +149,7 @@ static int _md_sysfs_attribute_snprintf(char *path, size_t size,
|
|||||||
if (stat(path, &info) < 0) {
|
if (stat(path, &info) < 0) {
|
||||||
/* old sysfs structure */
|
/* old sysfs structure */
|
||||||
ret = dm_snprintf(path, size, "%s/block/md%d/md/%s",
|
ret = dm_snprintf(path, size, "%s/block/md%d/md/%s",
|
||||||
sysfs_dir, MINOR(dev->dev), attribute);
|
sysfs_dir, (int)MINOR(dev->dev), attribute);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
log_error("dm_snprintf old md %s failed", attribute);
|
log_error("dm_snprintf old md %s failed", attribute);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user