From 8eb05f94d449fdf134ec24630ce69ada5b469c1c Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 4 Nov 2017 17:30:55 +0100 Subject: [PATCH] windows: fix go vet warning Now that go tip runs vet during go test (CL 74356), the x/sys/windows test fails due to the following vet error: syscall_windows_test.go:84: Fatal call has possible formatting directive %x Fix it by using Fatalf instead. Change-Id: I02536312c00bc9002400b29b5b5acef879a0e51a Reviewed-on: https://go-review.googlesource.com/75973 Reviewed-by: Brad Fitzpatrick --- windows/syscall_windows_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/syscall_windows_test.go b/windows/syscall_windows_test.go index 0f73c11b..9c7133cc 100644 --- a/windows/syscall_windows_test.go +++ b/windows/syscall_windows_test.go @@ -81,7 +81,7 @@ func TestFormatMessage(t *testing.T) { buf := make([]uint16, 300) _, err = windows.FormatMessage(flags, uintptr(dll.Handle), uint32(errno), 0, buf, nil) if err != nil { - t.Fatal("FormatMessage for handle=%x and errno=%x failed: %v", dll.Handle, errno, err) + t.Fatalf("FormatMessage for handle=%x and errno=%x failed: %v", dll.Handle, errno, err) } }