mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
tools/trace: Dump NULL literally.
Instead of None.
This commit is contained in:
parent
1a867385d5
commit
47ff3f7cc5
1 changed files with 4 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue