summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-04-08 15:41:08 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-05-24 18:14:58 -0700
commit545782cbfe49398d64d9e94e20e737466057d7af (patch)
tree6cbd9428024823b026a19651fed40154fb6cb54f /src
parent7e674aff79baa61777772e169584de2c0207d5b1 (diff)
trace: Make call no global.
Diffstat (limited to 'src')
-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 724c89495dd..29bc54f0950 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -55,6 +55,7 @@
static struct util_stream *stream = NULL;
static unsigned refcount = 0;
+static long unsigned call_no = 0;
static INLINE void
@@ -215,6 +216,7 @@ trace_dump_trace_close(void)
util_stream_close(stream);
stream = NULL;
refcount = 0;
+ call_no = 0;
}
}
@@ -262,11 +264,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=\'");