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) } } }