From mboxrd@z Thu Jan 1 00:00:00 1970 From: fabbione@sourceware.org Date: 15 Feb 2008 08:01:44 -0000 Subject: [Cluster-devel] cluster/gfs2/libgfs2 misc.c Message-ID: <20080215080144.17023.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: fabbione at sourceware.org 2008-02-15 08:01:43 Modified files: gfs2/libgfs2 : misc.c Log message: Fix http://bugs.debian.org/465790 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/libgfs2/misc.c.diff?cvsroot=cluster&r1=1.6&r2=1.7 --- cluster/gfs2/libgfs2/misc.c 2007/11/13 17:03:40 1.6 +++ cluster/gfs2/libgfs2/misc.c 2008/02/15 08:01:43 1.7 @@ -27,6 +27,7 @@ #include #include #include +#include #include "libgfs2.h" @@ -617,8 +618,8 @@ return NULL; memset(device_id, 0, sizeof(device_id)); - sprintf(device_id, "%u:%u", (uint32_t)MAJOR(statbuf.st_dev), - (uint32_t)MINOR(statbuf.st_dev)); + sprintf(device_id, "%i:%i", major(statbuf.st_dev), + minor(statbuf.st_dev)); d = opendir(SYS_BASE); if (!d)