test/func/pagemap: avoid address_t to void* cast

Instead, tell the iostream to write out hex.  This avoids the CHERI compiler
warning that we're turning a provenance-free value to a pointer.

Co-authored-by: Matthew Parkinson <mattpark@microsoft.com>
This commit is contained in:
Nathaniel Wesley Filardo
2021-07-20 11:41:32 +01:00
committed by Nathaniel Wesley Filardo
parent 87e41559b2
commit c07f5ea7be

View File

@@ -40,7 +40,7 @@ void check_get(
if (value.v != expected.v)
{
std::cout << "Location: " << (void*)address << " Read: " << value.v
std::cout << "Location: " << std::hex << address << " Read: " << value.v
<< " Expected: " << expected.v << " on " << file << ":" << lineno
<< std::endl;
failure_count++;