mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
gcc: cast time_t to 64bit
Value is printed as uint64, so make sure right type is passed on all platforms. Fixes gcc warning on some 32bit platforms.
This commit is contained in:
parent
5aade9c402
commit
8e9deb2e70
@ -664,7 +664,7 @@ static int _print_timestamp(struct formatter *f,
|
||||
"%Y-%m-%d %T %z", local_tm))
|
||||
buf[0] = 0;
|
||||
|
||||
outfc(f, buf, "%s = %" PRIu64, name, ts);
|
||||
outfc(f, buf, "%s = %" PRIu64, name, (uint64_t) ts);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user