pps-tools: use %lld in printf for 64-bit time_t
authorMatt Merhar <mattmerhar@protonmail.com>
Wed, 8 Nov 2023 18:19:00 +0000 (13:19 -0500)
committerRosen Penev <rosenp@gmail.com>
Thu, 16 Nov 2023 19:27:23 +0000 (11:27 -0800)
commit2a5ad04756e45e6d9d944a14253979e5300f95e3
tree8b4b94a50ee1dba22376fe1fe976175fca36a678
parentaf1ad467ae59c3943bdad73ae07b0d16c2fd634f
pps-tools: use %lld in printf for 64-bit time_t

musl 1.2.0 switched to use 64-bit time_t everywhere, including 32-bit
architectures, causing garbage values to be printed from ppswatch and
ppstest.

Use the correct format string for the affected printf statements and
explicitly cast to long long to avoid potential compatibility issues
with 32-bit glibc.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
utils/pps-tools/Makefile
utils/pps-tools/patches/001-time_t_64bit.patch [new file with mode: 0644]