1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/ztimer64: fix build when PRIu64 is not defined

This commit is contained in:
Benjamin Valentin 2024-05-24 19:19:40 +02:00
parent c46d75d486
commit a209ef173c

View File

@ -302,7 +302,13 @@ void ztimer64_clock_print(const ztimer64_clock_t *clock)
const ztimer64_base_t *entry = clock->first; const ztimer64_base_t *entry = clock->first;
while (entry) { while (entry) {
#ifdef PRIu64
printf("0x%08" PRIxPTR ":%" PRIu64 "\n", (uintptr_t)entry, entry->target); printf("0x%08" PRIxPTR ":%" PRIu64 "\n", (uintptr_t)entry, entry->target);
#else
printf("0x%08" PRIxPTR ":%" PRIu32 "%s\n",
(uintptr_t)entry, (uint32_t)entry->target,
entry->target > UINT32_MAX ? " !TRUNC!" : "");
#endif
entry = entry->next; entry = entry->next;
} }
puts(""); puts("");