]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
io: Adapt to >= 64-bit time_t
authorSam James <sam@gentoo.org>
Mon, 5 Feb 2024 23:23:20 +0000 (23:23 +0000)
committerCarlos Maiolino <cem@kernel.org>
Fri, 16 Feb 2024 13:47:33 +0000 (14:47 +0100)
commitebe85b803bc8d97cc44dcab74a23803f31e45994
tree910c54221305afe04dff52203cdb9cced9eeac36
parent9e726740f107e57280714bae0ddc582e9b98d580
io: Adapt to >= 64-bit time_t

We now require (at least) 64-bit time_t, so we need to adjust some printf
specifiers accordingly.

Unfortunately, we've stumbled upon a ridiculous C mmoment whereby there's
no neat format specifier (not even one of the inttypes ones) for time_t, so
we cast to intmax_t and use %jd.

Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
io/stat.c