From: Robert Hencke Date: Tue, 29 Nov 2011 03:40:34 +0000 (+1100) Subject: cgo: fix incorrect print found by govet X-Git-Tag: weekly.2011-12-01~26 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b2329e997bd64a8a0a9b7800665fb7f3cc9c6bda;p=gostls13.git cgo: fix incorrect print found by govet R=golang-dev CC=golang-dev https://golang.org/cl/5445052 --- diff --git a/misc/cgo/test/helpers.go b/misc/cgo/test/helpers.go index de14d19abf..890dcbdf1d 100644 --- a/misc/cgo/test/helpers.go +++ b/misc/cgo/test/helpers.go @@ -29,7 +29,7 @@ var testPairs = []testPair{ func testHelpers(t *testing.T) { for _, pair := range testPairs { if !reflect.DeepEqual(pair.Got, pair.Want) { - t.Errorf("%s: got %#v, want %#v", pair.Got, pair.Want) + t.Errorf("%s: got %#v, want %#v", pair.Name, pair.Got, pair.Want) } } }