test_uuid_parser: fix time_t=long assumptions

References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-05-06 10:13:27 +02:00
parent c13ce8f4d6
commit 7e349033e0
1 changed files with 2 additions and 2 deletions

View File

@ -163,8 +163,8 @@ main(int argc, char **argv)
printf("Warning: not a time-based UUID, so UUID time "
"decoding will likely not work!\n");
}
printf("UUID time is: (%ld, %ld): %s\n", (long)tv.tv_sec, (long)tv.tv_usec,
ctime(&time_reg));
printf("UUID time is: (%"PRId64", %"PRId64"): %s\n",
(int64_t)tv.tv_sec, (int64_t)tv.tv_usec, ctime(&time_reg));
return 0;
}