From 68ed59b20bf0e0fefc232c3eb288c90c95732b3d Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Fri, 6 Sep 2024 06:22:10 -0400 Subject: [PATCH] windows/svc: fix printf(var) mistake detected by latest printf checker For golang/go#69267. Change-Id: Ie240b5c826bb96c0e2021a7e99a3c0f973f0a0e1 Reviewed-on: https://go-review.googlesource.com/c/sys/+/610940 Reviewed-by: Tim King Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI --- windows/svc/svc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/svc/svc_test.go b/windows/svc/svc_test.go index be369ea21..cd2cd467c 100644 --- a/windows/svc/svc_test.go +++ b/windows/svc/svc_test.go @@ -178,7 +178,7 @@ func TestIsWindowsServiceWhenParentExits(t *testing.T) { child.Env = append(os.Environ(), "GO_WANT_HELPER_PROCESS=child") err := child.Start() if err != nil { - fmt.Fprintf(os.Stderr, fmt.Sprintf("child start failed: %v", err)) + fmt.Fprintf(os.Stderr, "child start failed: %v", err) os.Exit(1) } os.Exit(0)