diff --git a/WHATS_NEW b/WHATS_NEW index 8bc9487d2..474b9208c 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -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 diff --git a/lib/config/config.c b/lib/config/config.c index fdfc3b5ef..9c7e86631 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -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; diff --git a/lib/datastruct/lvm-types.h b/lib/datastruct/lvm-types.h index 3d35ca6e5..1d1de69cd 100644 --- a/lib/datastruct/lvm-types.h +++ b/lib/datastruct/lvm-types.h @@ -23,6 +23,7 @@ /* Define some portable printing types */ #define PRIsize_t "zu" +#define PRIptrdiff_t "td" struct str_list { struct list list;