From 767c4f26bff56e626723092d83224befd2d21025 Mon Sep 17 00:00:00 2001 From: Ayrton Munoz Date: Fri, 23 Sep 2022 02:08:56 -0400 Subject: Switch to PRI*64 macros for format specifiers LK defines uint64_t as `unsigned long long` for every arch, but musl defines it as `unsigned long` for aarch64 and x64 so this switches %llx to PRIx64 when printing `uint64_t`s. There are analogous changes for %llu and %lld. This also adds a PRI macro for printing `asid_t`. Bug: 230134581 Change-Id: Iafa6b4c1d341832e3aeead0ee3fc517b8e3b1ff6 --- include/kernel/asid.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/kernel/asid.h b/include/kernel/asid.h index 060d2db9..bceb9424 100644 --- a/include/kernel/asid.h +++ b/include/kernel/asid.h @@ -24,6 +24,7 @@ #include +#define PRIxASID PRIx64 typedef uint64_t asid_t; struct arch_aspace; -- cgit v1.2.3