dee37fc99d
In int-ll64.h, we always use the following typedefs: typedef unsigned int u32; typedef unsigned long uintptr_t; typedef unsigned long long u64; This does not need to match to the compiler's <inttypes.h>. Do not include it. The use of PRI* makes the code super-ugly. You can simply use "l" for printing uintptr_t, "ll" for u64, and no modifier for u32. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
13 lines
218 B
C
13 lines
218 B
C
#include <common.h>
|
|
|
|
int test_types(void)
|
|
{
|
|
uintptr_t uintptr = 0;
|
|
uint64_t uint64 = 0;
|
|
u64 u64_val = 0;
|
|
|
|
printf("uintptr = %lu\n", uintptr);
|
|
printf("uint64 = %llu\n", uint64);
|
|
printf("u64 = %llu\n", u64_val);
|
|
}
|