summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-16 19:44:37 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-18 20:47:41 +0100
commitd042f415fc9edcc174573fc2cc06afa373a7ef9b (patch)
tree8418667163a9f3e6725ebd29f971e002f34d7b56 /src/gallium/drivers
parent6a31bb6ad8251ae977327e64562f373a89f55c70 (diff)
trace: Use long longs to ensure covering 64bits integers.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/trace/tr_dump.c8
-rw-r--r--src/gallium/drivers/trace/tr_dump.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index ecd0d6830d..1613a626df 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -302,14 +302,14 @@ void trace_dump_bool(int value)
trace_dump_writef("<bool>%c</bool>", value ? '1' : '0');
}
-void trace_dump_int(long int value)
+void trace_dump_int(long long int value)
{
- trace_dump_writef("<int>%li</int>", value);
+ trace_dump_writef("<int>%lli</int>", value);
}
-void trace_dump_uint(long unsigned value)
+void trace_dump_uint(long long unsigned value)
{
- trace_dump_writef("<uint>%lu</uint>", value);
+ trace_dump_writef("<uint>%llu</uint>", value);
}
void trace_dump_float(double value)
diff --git a/src/gallium/drivers/trace/tr_dump.h b/src/gallium/drivers/trace/tr_dump.h
index 14176a78e9..6ddc8fc15c 100644
--- a/src/gallium/drivers/trace/tr_dump.h
+++ b/src/gallium/drivers/trace/tr_dump.h
@@ -48,8 +48,8 @@ void trace_dump_arg_end(void);
void trace_dump_ret_begin(void);
void trace_dump_ret_end(void);
void trace_dump_bool(int value);
-void trace_dump_int(long int value);
-void trace_dump_uint(long unsigned value);
+void trace_dump_int(long long int value);
+void trace_dump_uint(long long unsigned value);
void trace_dump_float(double value);
void trace_dump_bytes(const void *data, long unsigned size);
void trace_dump_string(const char *str);