1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

Fix dmlosetup snprintf %llu compiler warning.

This commit is contained in:
Alasdair Kergon 2010-07-05 22:56:31 +00:00
parent 38c6e8faf6
commit b02de599a0
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.52 - Version 1.02.52 -
================================ ================================
Fix dmlosetup snprintf %llu compiler warning.
Add parentheses to some libdevmapper.h macro arguments. Add parentheses to some libdevmapper.h macro arguments.
Add printf format attributes to dm_{sn,as}printf and fix a caller. 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) Move dmeventd man page from install_lvm2 to install_device-mapper. (1.02.50)

View File

@ -2942,7 +2942,7 @@ static int _loop_table(char *table, size_t tlen, char *file,
close(fd); close(fd);
if (dm_snprintf(table, tlen, "%llu %llu loop %s %llu\n", 0ULL, 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; return 0;
if (_switches[VERBOSE_ARG] > 1) if (_switches[VERBOSE_ARG] > 1)
@ -2956,8 +2956,6 @@ error:
return 0; return 0;
} }
static int _process_losetup_switches(const char *base, int *argc, char ***argv, static int _process_losetup_switches(const char *base, int *argc, char ***argv,
const char *dev_dir) const char *dev_dir)
{ {