gallium/u_dump: export util_dump_ptr
Change format to %p while we're at it. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -90,6 +90,9 @@ util_str_query_value_type(unsigned value, boolean shortened);
|
||||
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);
|
||||
|
||||
|
||||
@@ -142,11 +142,11 @@ util_dump_null(FILE *stream)
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user