1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

Cast MINOR() in _md_sysfs_attribute_snprintf()'s dm_snprintf() call.

This commit is contained in:
Mike Snitzer 2009-07-20 18:44:13 +00:00
parent 6111e048a3
commit 69c7e1f754

View File

@ -149,7 +149,7 @@ static int _md_sysfs_attribute_snprintf(char *path, size_t size,
if (stat(path, &info) < 0) {
/* old sysfs structure */
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) {
log_error("dm_snprintf old md %s failed", attribute);
return ret;