1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Fix warnings on x86_64 involving ptrdiff_t:

config/config.c:493: warning: format '%d' expects type 'int', but argument 5 has type 'long int'

Modified original patch from Jim Meyering <jim@meyering.net>
This commit is contained in:
Dave Wysochanski 2007-04-26 16:40:46 +00:00
parent 28d1c4d7e2
commit 867c3249cb
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.25 -
=================================
Fix warnings on x86_64 involving ptrdiff_t in log_error messages
Update pvck to include text metadata area and record detection
Add support functions for analysis of config sections
Update pvck to read labels on disk, with --labelsector parameter

View File

@ -83,7 +83,8 @@ static const int sep = '/';
#define match(t) do {\
if (!_match_aux(p, (t))) {\
log_error("Parse error at byte %d (line %d): unexpected token", p->tb - p->fb + 1, p->line); \
log_error("Parse error at byte %" PRIptrdiff_t " (line %d): unexpected token", \
p->tb - p->fb + 1, p->line); \
return 0;\
} \
} while(0);
@ -590,7 +591,8 @@ static struct config_value *_type(struct parser *p)
break;
default:
log_error("Parse error at byte %d (line %d): expected a value", p->tb - p->fb + 1, p->line);
log_error("Parse error at byte %" PRIptrdiff_t " (line %d): expected a value",
p->tb - p->fb + 1, p->line);
return 0;
}
return v;

View File

@ -23,6 +23,7 @@
/* Define some portable printing types */
#define PRIsize_t "zu"
#define PRIptrdiff_t "td"
struct str_list {
struct list list;