aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2020-04-17 16:20:53 -0400
committerThan McIntosh <thanm@google.com>2020-04-19 21:15:08 +0000
commit04040ec9f9c763aee549d6afa3d4f0c34adf9cc1 (patch)
treeb548dc094effb237c055fadb5cb1a0d9e2fe0187 /src/debug
parent885099d1550dad8387013c8f35ad3d4ad9f17c66 (diff)
downloadgo-04040ec9f9c763aee549d6afa3d4f0c34adf9cc1.tar.gz
go-04040ec9f9c763aee549d6afa3d4f0c34adf9cc1.zip
debug/pe: improve testpoint error message
A DWARF testpoint was calling t.Fatal() but should have been calling t.Fatalf(); switch it to the correct method. Change-Id: I996a1041adea4299cda85c147a35b513a219b970 Reviewed-on: https://go-review.googlesource.com/c/go/+/228790 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/pe/file_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/pe/file_test.go b/src/debug/pe/file_test.go
index 26a65941e1..d96cd30904 100644
--- a/src/debug/pe/file_test.go
+++ b/src/debug/pe/file_test.go
@@ -451,7 +451,7 @@ func testDWARF(t *testing.T, linktype int) {
}
offset := uintptr(addr) - imageBase
if offset != uintptr(wantoffset) {
- t.Fatal("Runtime offset (0x%x) did "+
+ t.Fatalf("Runtime offset (0x%x) did "+
"not match dwarf offset "+
"(0x%x)", wantoffset, offset)
}