aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_dump.h3
-rw-r--r--src/gallium/auxiliary/util/u_dump_state.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_dump.h b/src/gallium/auxiliary/util/u_dump.h
index 3fa253e511f..ff1325e1147 100644
--- a/src/gallium/auxiliary/util/u_dump.h
+++ b/src/gallium/auxiliary/util/u_dump.h
@@ -91,6 +91,9 @@ 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);
void
diff --git a/src/gallium/auxiliary/util/u_dump_state.c b/src/gallium/auxiliary/util/u_dump_state.c
index c263021a9f6..cef82a314f1 100644
--- a/src/gallium/auxiliary/util/u_dump_state.c
+++ b/src/gallium/auxiliary/util/u_dump_state.c
@@ -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);
}