summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-04-08 15:41:08 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-04-08 16:26:05 +0100
commitd2cdf6253cf06fbed6a5ca7ae17ddadf644afe26 (patch)
treed3e2da72685ccf299d1bf51d49bc137bbacdd26c /src/gallium
parentc14562d3b1e5d93d5704f3195a7f83fc5c17eddb (diff)
trace: Make call no global.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/trace/tr_dump.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index 314e4fa350..f9ee7876cb 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -58,6 +58,7 @@
static struct util_stream *stream = NULL;
static unsigned refcount = 0;
+static long unsigned call_no = 0;
static INLINE void
@@ -218,6 +219,7 @@ trace_dump_trace_close(void)
util_stream_close(stream);
stream = NULL;
refcount = 0;
+ call_no = 0;
}
}
@@ -265,11 +267,10 @@ void trace_dump_trace_end(void)
void trace_dump_call_begin(const char *klass, const char *method)
{
- static long unsigned no = 0;
- ++no;
+ ++call_no;
trace_dump_indent(1);
trace_dump_writes("<call no=\'");
- trace_dump_writef("%lu", no);
+ trace_dump_writef("%lu", call_no);
trace_dump_writes("\' class =\'");
trace_dump_escape(klass);
trace_dump_writes("\' method=\'");