From: José Fonseca Date: Wed, 8 Apr 2009 14:41:08 +0000 (+0100) Subject: trace: Make call no global. X-Git-Tag: 062012170305~16521^2~809 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2cdf6253cf06fbed6a5ca7ae17ddadf644afe26;p=profile%2Fivi%2Fmesa.git trace: Make call no global. --- diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c index 314e4fa..f9ee787 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("