Skip to contentSkip to conversation

LVM2/tools dmsetup.c

PATCH [email protected] 1 participant 1 message Jul 5, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2010-07-05 22:56:32

Modified files:
tools : dmsetup.c

Log message:
Fix dmlosetup snprintf %llu compiler warning.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/dmsetup.c.diff?cvsroot=lvm2&r1=1.138&r2=1.139

tools/dmsetup.c +1 -3
@@ -2942,7 +2942,7 @@
 	close(fd);
 
 	if (dm_snprintf(table, tlen, "%llu %llu loop %s %llu\n", 0ULL,
-			(long long unsigned)sectors, file, off) < 0)
+			(long long unsigned)sectors, file, (long long unsigned)off) < 0)
 		return 0;
 
 	if (_switches[VERBOSE_ARG] > 1)
@@ -2956,8 +2956,6 @@
 	return 0;
 }
 
-
-
 static int _process_losetup_switches(const char *base, int *argc, char ***argv,
 				     const char *dev_dir)
 {