about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-03 20:15:02 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-03 20:19:34 +0200
commit62021fc291a2cb28fd9a1d2f291c4888cb001b5a (patch)
treec4ac2c2252c95bca8277dcb2c5c41c812d688e58 /src/include
parentab3ff07c93746c337ed630cc0566c7ff94e515d0 (diff)
downloadbox64-62021fc291a2cb28fd9a1d2f291c4888cb001b5a.tar.gz
box64-62021fc291a2cb28fd9a1d2f291c4888cb001b5a.zip
[BOX32] Better log for 32bits pointer conversion error
Diffstat (limited to 'src/include')
-rw-r--r--src/include/box32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/box32.h b/src/include/box32.h
index 9d14b0f7..b4d7cf06 100644
--- a/src/include/box32.h
+++ b/src/include/box32.h
@@ -33,7 +33,7 @@ uintptr_t from_hash_d(ulong_t l);
 
 static inline ptr_t to_ptr(uintptr_t p) {
     if(p!=0xffffffffffffffffLL && (p>>32)) {
-        printf_log(LOG_NONE, "Warning, pointer %p is not a 32bits value\n", (void*)p);
+        printf_log(LOG_NONE, "Warning, uintptr_t %p is not a 32bits value\n", (void*)p);
         #ifdef TEST_ABORT
         abort();
         #endif
@@ -43,7 +43,7 @@ static inline ptr_t to_ptr(uintptr_t p) {
 static inline ptr_t to_ptrv(void* p2) {
     uintptr_t p = (uintptr_t)p2;
     if(p!=0xffffffffffffffffLL && (p>>32)) {
-        printf_log(LOG_NONE, "Warning, pointer %p is not a 32bits value\n", (void*)p);
+        printf_log(LOG_NONE, "Warning, pointer %p is not a 32bits value\n", p2);
         #ifdef TEST_ABORT
         abort();
         #endif