diff options
| author | Robert Hencke <robert.hencke@gmail.com> | 2014-04-26 19:54:48 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2014-04-26 19:54:48 -0700 |
| commit | d46134830fff5ab20950762f7b7371a7dbef5871 (patch) | |
| tree | 0ba1ba256585d98f506b69879bd9bb6b13d73545 /src/pkg/debug | |
| parent | 8409dea8ee87dcaf8ecbf16ed59214eb08524973 (diff) | |
| download | go-d46134830fff5ab20950762f7b7371a7dbef5871.tar.xz | |
src: fix issues found by go vet std
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/96850043
Diffstat (limited to 'src/pkg/debug')
| -rw-r--r-- | src/pkg/debug/macho/file_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/debug/macho/file_test.go b/src/pkg/debug/macho/file_test.go index 0de9184c22..4797780ce7 100644 --- a/src/pkg/debug/macho/file_test.go +++ b/src/pkg/debug/macho/file_test.go @@ -184,7 +184,7 @@ func TestOpenFat(t *testing.T) { ftArch := &fileTests[i] if arch.Cpu != ftArch.hdr.Cpu || arch.SubCpu != ftArch.hdr.SubCpu { - t.Error("OpenFat: architecture #%d got cpu=%#x subtype=%#x, expected cpu=%#x, subtype=%#x", i, arch.Cpu, arch.SubCpu, ftArch.hdr.Cpu, ftArch.hdr.SubCpu) + t.Errorf("OpenFat: architecture #%d got cpu=%#x subtype=%#x, expected cpu=%#x, subtype=%#x", i, arch.Cpu, arch.SubCpu, ftArch.hdr.Cpu, ftArch.hdr.SubCpu) } if !reflect.DeepEqual(arch.FileHeader, ftArch.hdr) { @@ -202,9 +202,9 @@ func TestOpenFatFailure(t *testing.T) { filename = "testdata/gcc-386-darwin-exec" // not a fat Mach-O ff, err := OpenFat(filename) if err != ErrNotFat { - t.Errorf("OpenFat %s: got %v, want ErrNotFat", err) + t.Errorf("OpenFat %s: got %v, want ErrNotFat", filename, err) } if ff != nil { - t.Errorf("OpenFat %s: got %v, want nil", ff) + t.Errorf("OpenFat %s: got %v, want nil", filename, ff) } } |
