trace: Use long longs to ensure covering 64bits integers.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 16 Aug 2008 18:44:37 +0000 (19:44 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 18 Aug 2008 19:47:41 +0000 (20:47 +0100)
src/gallium/drivers/trace/tr_dump.c
src/gallium/drivers/trace/tr_dump.h

index ecd0d6830d2eed4106f6a6617d066030faa1f7cc..1613a626df43a30fb859249d63c913afed43f9c6 100644 (file)
@@ -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)
index 14176a78e9746675b3a85938a4c28a88f8bb3bfd..6ddc8fc15c4456219f5f37566fbb5b6e4fb5ca48 100644 (file)
@@ -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);