kfence: report sensitive information based on no_hash_pointers
[platform/kernel/linux-starfive.git] / mm / kfence / kfence_test.c
index db1bb59..4acf425 100644 (file)
@@ -146,7 +146,7 @@ static bool report_matches(const struct expect_report *r)
                break;
        }
 
-       cur += scnprintf(cur, end - cur, " 0x" PTR_FMT, (void *)r->addr);
+       cur += scnprintf(cur, end - cur, " 0x%p", (void *)r->addr);
 
        spin_lock_irqsave(&observed.lock, flags);
        if (!report_available())