[gdb-scripts] Fix PointerIntPairPrinter.to_string after D127969
authorFangrui Song <i@maskray.me>
Fri, 24 Jun 2022 07:36:26 +0000 (00:36 -0700)
committerFangrui Song <i@maskray.me>
Fri, 24 Jun 2022 07:36:26 +0000 (00:36 -0700)
llvm/utils/gdb-scripts/prettyprinters.py

index b9bf0ef..f778d98 100644 (file)
@@ -387,7 +387,7 @@ class PointerIntPairPrinter:
     yield ('value', self.value)
 
   def to_string(self):
-    return '(%s, %s)' % self.pointer.type, self.value.type
+    return '(%s, %s)' % (self.pointer.type, self.value.type)
 
 def make_pointer_int_pair_printer(val):
   """Factory for an llvm::PointerIntPair printer."""