1
0
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:
Zdenek Kabelac 2016-03-07 18:12:26 +01:00
parent 5aade9c402
commit 8e9deb2e70

View File

@ -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;