diff options
author | José Fonseca <[email protected]> | 2008-08-07 18:55:05 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-08-07 18:58:30 +0100 |
commit | 9dee60969df7ff263e05430e69ef26982fe2bd94 (patch) | |
tree | 5f5723afe4c237c8c721ebea57d8dabb312ea9e3 /src/gallium/drivers/trace/tr_dump.c | |
parent | f2e19c34e06dfc33557a481f764fc75a5aef15ff (diff) |
trace: Dump state.
Diffstat (limited to 'src/gallium/drivers/trace/tr_dump.c')
-rw-r--r-- | src/gallium/drivers/trace/tr_dump.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c index 30c09863634..0591b9fc336 100644 --- a/src/gallium/drivers/trace/tr_dump.c +++ b/src/gallium/drivers/trace/tr_dump.c @@ -322,8 +322,16 @@ void trace_dump_member_end(struct trace_stream *stream) trace_dump_write(stream, "</member>"); } +void trace_dump_null(struct trace_stream *stream) +{ + trace_dump_write(stream, "<null/>"); +} + void trace_dump_ptr(struct trace_stream *stream, const void *value) { - trace_dump_writef(stream, "<ptr>%p</ptr>", value); + if(value) + trace_dump_writef(stream, "<ptr>%p</ptr>", value); + else + trace_dump_null(stream); } |