test_uuid_parser: fix time_t=long assumptions
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
c13ce8f4d6
commit
7e349033e0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue