diff options
author | Ayrton Munoz <ayrton@google.com> | 2022-09-23 02:08:56 -0400 |
---|---|---|
committer | Ayrton Munoz <ayrton@google.com> | 2022-09-27 17:34:56 -0400 |
commit | 767c4f26bff56e626723092d83224befd2d21025 (patch) | |
tree | 5a3acaae1258d39df334c03fb067caba8454ee7c /include | |
parent | c2b80e104187565460759e8156550d7b472c45cf (diff) | |
download | common-767c4f26bff56e626723092d83224befd2d21025.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel/asid.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <stdint.h> +#define PRIxASID PRIx64 typedef uint64_t asid_t; struct arch_aspace; |