Skip to content

Commit 4021a20

Browse files
committed
Correct PRI
1 parent db697d7 commit 4021a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qemu/tcg/tcg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ void uc_add_inline_hook(uc_engine *uc, struct hook *hk, void** args, int args_le
689689
case UC_HOOK_CODE:
690690
// (*uc_cb_hookcode_t)(uc_engine *uc, uint64_t address, uint32_t size, void *user_data);
691691
sizemask = dh_sizemask(void, 0) | dh_sizemask(ptr, 1) | dh_sizemask(i64, 2) | dh_sizemask(i32, 3) | dh_sizemask(ptr, 4);
692-
snprintf(name, 63, "hookcode_%d_%" PRIx64 , hk->type, (uint64_t)hk->callback);
692+
snprintf(name, 63, "hookcode_%d_%" PRIxPTR , hk->type, (uintptr_t)hk->callback);
693693
break;
694694

695695
default:

0 commit comments

Comments
 (0)