Change format to %p while we're at it.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
const char *
util_str_prim_mode(unsigned value, boolean shortened);
+void
+util_dump_ptr(FILE *stream, const void *value);
+
void
util_dump_query_type(FILE *stream, unsigned value);
fputs("NULL", stream);
}
-static void
+void
util_dump_ptr(FILE *stream, const void *value)
{
if(value)
- util_stream_writef(stream, "0x%08lx", (unsigned long)(uintptr_t)value);
+ util_stream_writef(stream, "%p", value);
else
util_dump_null(stream);
}