summaryrefslogtreecommitdiffstats
path: root/src/gallium/tools/trace/model.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-09-28 20:25:40 +0100
committerJosé Fonseca <[email protected]>2011-09-29 17:43:36 +0100
commit47ff3f7cc516a1087ac6d4fee024f69d62708542 (patch)
tree6acee3d6c5d678188909931515fc7149d25b304d /src/gallium/tools/trace/model.py
parent1a867385d56022e904ef0235cbed545057fcb998 (diff)
tools/trace: Dump NULL literally.
Instead of None.
Diffstat (limited to 'src/gallium/tools/trace/model.py')
-rwxr-xr-xsrc/gallium/tools/trace/model.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/tools/trace/model.py b/src/gallium/tools/trace/model.py
index e76aad7788b..9f2d5bc7e9d 100755
--- a/src/gallium/tools/trace/model.py
+++ b/src/gallium/tools/trace/model.py
@@ -151,6 +151,10 @@ class PrettyPrinter:
self.formatter = formatter
def visit_literal(self, node):
+ if node.value is None:
+ self.formatter.literal('NULL')
+ return
+
if isinstance(node.value, basestring):
if len(node.value) >= 4096 or node.value.strip(string.printable):
self.formatter.address('blob(%u)' % len(node.value))