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:
committed by
Nathaniel Wesley Filardo
parent
87e41559b2
commit
c07f5ea7be
@@ -40,7 +40,7 @@ void check_get(
|
|||||||
|
|
||||||
if (value.v != expected.v)
|
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
|
<< " Expected: " << expected.v << " on " << file << ":" << lineno
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
failure_count++;
|
failure_count++;
|
||||||
|
|||||||
Reference in New Issue
Block a user