mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
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 <bradfitz@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
4fe5d79250
commit
8eb05f94d4
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user