]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix string formatting
authorDaniel Ingram <ingramds@appstate.edu>
Sat, 22 Dec 2018 22:11:25 +0000 (22:11 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 2 Jan 2019 16:59:44 +0000 (16:59 +0000)
Change-Id: I87d0bc78a246e479d97b3f83cf77c1f701975413
GitHub-Last-Rev: 22cd684e08464f0e01f1cba2235443371dba3a5d
GitHub-Pull-Request: golang/go#29157
Reviewed-on: https://go-review.googlesource.com/c/153298
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/runtime-gdb.py

index 4c32c633cf1f1d3fd00bf3d4c5bc93c8ff450dc8..48960b7f6133f5d5ed4d12ba0b0b5d3279a35f12 100644 (file)
@@ -353,7 +353,8 @@ class IfacePrinter:
                        return "<bad dynamic type>"
 
                if dtype is None:  # trouble looking up, print something reasonable
-                       return "({0}){0}".format(iface_dtype_name(self.val), self.val['data'])
+                       return "({typename}){data}".format(
+                               typename=iface_dtype_name(self.val), data=self.val['data'])
 
                try:
                        return self.val['data'].cast(dtype).dereference()