]> sourceware.org Git - lvm2.git/commitdiff
Fix dmlosetup snprintf %llu compiler warning.
authorAlasdair Kergon <agk@redhat.com>
Mon, 5 Jul 2010 22:56:31 +0000 (22:56 +0000)
committerAlasdair Kergon <agk@redhat.com>
Mon, 5 Jul 2010 22:56:31 +0000 (22:56 +0000)
WHATS_NEW_DM
tools/dmsetup.c

index bdedabdabf13ba8afe7392736bde758e7ddece34..041db483fa61a6c990c055d8529d9097f01ecca8 100644 (file)
@@ -1,5 +1,6 @@
 Version 1.02.52 -
 ================================
+  Fix dmlosetup snprintf %llu compiler warning.
   Add parentheses to some libdevmapper.h macro arguments.
   Add printf format attributes to dm_{sn,as}printf and fix a caller.
   Move dmeventd man page from install_lvm2 to install_device-mapper. (1.02.50)
index 85dd7fb14f5323687aa669e30fbf81c839d9e1e2..5e71542a94fe97452572256bacbc9bf24ca5a8fb 100644 (file)
@@ -2942,7 +2942,7 @@ static int _loop_table(char *table, size_t tlen, char *file,
        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 @@ error:
        return 0;
 }
 
-
-
 static int _process_losetup_switches(const char *base, int *argc, char ***argv,
                                     const char *dev_dir)
 {
This page took 0.046068 seconds and 5 git commands to generate.