1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

Merge pull request #20693 from benpicco/sys/ztimer64-print_fix

sys/ztimer64: fix build when PRIu64 is not defined
This commit is contained in:
Marian Buschsieweke 2024-05-24 22:12:05 +00:00 committed by GitHub
commit 91223707de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -302,7 +302,13 @@ void ztimer64_clock_print(const ztimer64_clock_t *clock)
const ztimer64_base_t *entry = clock->first;
while (entry) {
#ifdef PRIu64
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;
}
puts("");