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:
parent
28d1c4d7e2
commit
867c3249cb
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.25 -
|
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
|
Update pvck to include text metadata area and record detection
|
||||||
Add support functions for analysis of config sections
|
Add support functions for analysis of config sections
|
||||||
Update pvck to read labels on disk, with --labelsector parameter
|
Update pvck to read labels on disk, with --labelsector parameter
|
||||||
|
@ -83,7 +83,8 @@ static const int sep = '/';
|
|||||||
|
|
||||||
#define match(t) do {\
|
#define match(t) do {\
|
||||||
if (!_match_aux(p, (t))) {\
|
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;\
|
return 0;\
|
||||||
} \
|
} \
|
||||||
} while(0);
|
} while(0);
|
||||||
@ -590,7 +591,8 @@ static struct config_value *_type(struct parser *p)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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 0;
|
||||||
}
|
}
|
||||||
return v;
|
return v;
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
/* Define some portable printing types */
|
/* Define some portable printing types */
|
||||||
#define PRIsize_t "zu"
|
#define PRIsize_t "zu"
|
||||||
|
#define PRIptrdiff_t "td"
|
||||||
|
|
||||||
struct str_list {
|
struct str_list {
|
||||||
struct list list;
|
struct list list;
|
||||||
|
Loading…
Reference in New Issue
Block a user