From: Josh Bleecher Snyder Date: Wed, 24 Feb 2021 19:48:09 +0000 (-0800) Subject: cmd/link: use ctxt.Logf instead of package log X-Git-Tag: go1.17beta1~1382 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6c3f8a2f47;p=gostls13.git cmd/link: use ctxt.Logf instead of package log Fixes #43601 Change-Id: I28b745cb92932d875a66f64c63355650a092f096 Reviewed-on: https://go-review.googlesource.com/c/go/+/296029 Trust: Josh Bleecher Snyder Run-TryBot: Josh Bleecher Snyder Reviewed-by: Cherry Zhang TryBot-Result: Go Bot --- diff --git a/src/cmd/link/internal/ld/config.go b/src/cmd/link/internal/ld/config.go index 481dc67475..291b28e11c 100644 --- a/src/cmd/link/internal/ld/config.go +++ b/src/cmd/link/internal/ld/config.go @@ -8,7 +8,6 @@ import ( "cmd/internal/objabi" "cmd/internal/sys" "fmt" - "log" ) // A BuildMode indicates the sort of object we are building. @@ -181,7 +180,7 @@ func mustLinkExternal(ctxt *Link) (res bool, reason string) { if ctxt.Debugvlog > 1 { defer func() { if res { - log.Printf("external linking is forced by: %s\n", reason) + ctxt.Logf("external linking is forced by: %s\n", reason) } }() }