aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/nm
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-02-12 22:56:50 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2017-02-14 02:09:30 +0000
commit785cb7e098b689e9d8c2d4be856f3ffa1825042e (patch)
tree2e1e360629e22b29e52ffba2a5bcfe071a0ded89 /src/cmd/nm
parentcc2a52adef473aa94cbbcc148eef4dfd79259ae7 (diff)
downloadgo-785cb7e098b689e9d8c2d4be856f3ffa1825042e.tar.gz
go-785cb7e098b689e9d8c2d4be856f3ffa1825042e.zip
all: fix some printf format strings
Appease vet. Change-Id: Ie88de08b91041990c0eaf2e15628cdb98d40c660 Reviewed-on: https://go-review.googlesource.com/36938 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/nm')
-rw-r--r--src/cmd/nm/nm_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/nm/nm_test.go b/src/cmd/nm/nm_test.go
index d7a867a0fd..170d87a690 100644
--- a/src/cmd/nm/nm_test.go
+++ b/src/cmd/nm/nm_test.go
@@ -34,7 +34,7 @@ func testMain(m *testing.M) int {
tmpDir, err := ioutil.TempDir("", "TestNM")
if err != nil {
- fmt.Printf("TempDir failed: ", err)
+ fmt.Println("TempDir failed:", err)
return 2
}
defer os.RemoveAll(tmpDir)
@@ -42,7 +42,7 @@ func testMain(m *testing.M) int {
testnmpath = filepath.Join(tmpDir, "testnm.exe")
gotool, err := testenv.GoTool()
if err != nil {
- fmt.Printf("GoTool failed: ", err)
+ fmt.Println("GoTool failed:", err)
return 2
}
out, err := exec.Command(gotool, "build", "-o", testnmpath, "cmd/nm").CombinedOutput()
@@ -149,7 +149,7 @@ func testGoFile(t *testing.T, iscgo, isexternallinker bool) {
}
err = scanner.Err()
if err != nil {
- t.Fatal("error reading nm output: %v", err)
+ t.Fatalf("error reading nm output: %v", err)
}
if len(names) > 0 {
t.Errorf("executable is missing %v symbols", names)