From 55224307bf9b3e4231daca9ad4c4e3b6d734869b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 23 Feb 2023 18:31:23 +0100 Subject: fix: printf related warnings --- src/user/app/tests/tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/tests/tests.c') diff --git a/src/user/app/tests/tests.c b/src/user/app/tests/tests.c index 7139fc7..2cb97cd 100644 --- a/src/user/app/tests/tests.c +++ b/src/user/app/tests/tests.c @@ -15,7 +15,7 @@ void run_test(void (*fn)()) { } else { /* successful tests must return 0 */ if (_sys_await() != 0) { - test_failf("%p, base %p", (void*)fn - (void*)_image_base, _image_base); + test_failf("%p, base %p", (void*)((void*)fn - (void*)_image_base), _image_base); } } } -- cgit v1.2.3