summaryrefslogtreecommitdiff
path: root/ir_print_visitor.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-04-28 23:18:25 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-05-01 00:38:36 -0700
commitb0e0da5f07b5072d588ab33b121933c705f3b8a1 (patch)
treeacdfa4be1383a7ec3157f6598255e84b9c96f5e9 /ir_print_visitor.cpp
parent05ddebac0a45bf07fa60b04b22f29234ca26a4a4 (diff)
Use %p rather than %08x when printing pointers to fix compile.
Diffstat (limited to 'ir_print_visitor.cpp')
-rw-r--r--ir_print_visitor.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp
index 9edb680385..ee7aa31175 100644
--- a/ir_print_visitor.cpp
+++ b/ir_print_visitor.cpp
@@ -34,9 +34,8 @@ _mesa_print_ir(exec_list *instructions,
for (unsigned i = 0; i < state->num_user_structures; i++) {
const glsl_type *const s = state->user_structures[i];
- printf("(structure (%s) (%s@%08x) (%u) (\n",
- s->name, s->name, (unsigned) s, s->length
- );
+ printf("(structure (%s) (%s@%p) (%u) (\n",
+ s->name, s->name, s, s->length);
for (unsigned j = 0; j < s->length; j++) {
printf("\t((");
@@ -66,7 +65,7 @@ print_type(const glsl_type *t)
printf(" %u)", t->length);
} else if ((t->base_type == GLSL_TYPE_STRUCT)
&& (strncmp("gl_", t->name, 3) != 0)) {
- printf("%s@%08x", t->name, (unsigned) t);
+ printf("%s@%p", t->name, t);
} else {
printf("%s", t->name);
}