Re: [PATCH] selftests: harness: fix printing of mismatch values in __EXPECT()

2025-01-08 Thread Shuah Khan
On 1/8/25 14:57, Kees Cook wrote: On Wed, Jan 08, 2025 at 07:07:57PM +0200, Dmitry V. Levin wrote: intptr_t and uintptr_t are not big enough types on 32-bit architectures when printing 64-bit values, resulting to the following incorrect diagnostic output: # get_syscall_info.c:209:get_syscall

Re: [PATCH] selftests: harness: fix printing of mismatch values in __EXPECT()

2025-01-08 Thread Kees Cook
On Wed, Jan 08, 2025 at 07:07:57PM +0200, Dmitry V. Levin wrote: > intptr_t and uintptr_t are not big enough types on 32-bit architectures > when printing 64-bit values, resulting to the following incorrect > diagnostic output: > > # get_syscall_info.c:209:get_syscall_info:Expected exp_args[2] (

[PATCH] selftests: harness: fix printing of mismatch values in __EXPECT()

2025-01-08 Thread Dmitry V. Levin
intptr_t and uintptr_t are not big enough types on 32-bit architectures when printing 64-bit values, resulting to the following incorrect diagnostic output: # get_syscall_info.c:209:get_syscall_info:Expected exp_args[2] (3134324433) == info.entry.args[1] (3134324433) Replace intptr_t and uintp