LVM2/lib/device dev-md.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: snitzer at sourceware.org 2009-07-20 18:44:14
Modified files:
lib/device : dev-md.c
Log message:
Cast MINOR() in _md_sysfs_attribute_snprintf()'s dm_snprintf() call.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/device/dev-md.c.diff?cvsroot=lvm2&r1=1.15&r2=1.16
lib/device/dev-md.c +1 -1
@@ -149,7 +149,7 @@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;