From b02de599a0df77c032bb6ebed820e5b88feee0b8 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 5 Jul 2010 22:56:31 +0000 Subject: [PATCH] Fix dmlosetup snprintf %llu compiler warning. --- WHATS_NEW_DM | 1 + tools/dmsetup.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index bdedabdab..041db483f 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -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) diff --git a/tools/dmsetup.c b/tools/dmsetup.c index 85dd7fb14..5e71542a9 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -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) { -- 2.43.5