Skip to content

Commit

Permalink
Fix printf specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrtonm committed Oct 31, 2024
1 parent 65aff43 commit cad853e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/threads/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void *thread_fn(void *ptr);
void *thread_fn(void *ptr) {
cr_log_info("tid %d ptr=%p\n", gettid(), ptr);

cr_log_info("main-module thread pkru=%08x\n", ia2_get_tag());
cr_log_info("main-module thread pkru=%08zx\n", ia2_get_tag());
#if LIBIA2_AARCH64
cr_assert_eq(ia2_get_tag(), 1);
#else
Expand Down Expand Up @@ -66,14 +66,14 @@ void *access_ptr_thread_fn(void *ptr) {
}

Test(threads, main) {
cr_log_info("main-module main pkru=%08x\n", ia2_get_tag());
cr_log_info("main-module main pkru=%08zx\n", ia2_get_tag());
#if LIBIA2_AARCH64
cr_assert_eq(ia2_get_tag(), 1);
#else
cr_assert_eq(ia2_get_tag(), 0xfffffff0);
#endif
library_showpkru();
cr_log_info("main-module main pkru=%08x\n", ia2_get_tag());
cr_log_info("main-module main pkru=%08zx\n", ia2_get_tag());

pthread_t lib_thread = library_spawn_thread();

Expand Down

0 comments on commit cad853e

Please sign in to comment.