From 35e530706e25f4249ed36459735f726e06029cf2 Mon Sep 17 00:00:00 2001 From: Jonathan Metzman Date: Mon, 17 Jun 2024 18:25:02 -0400 Subject: [PATCH] Fix comments --- infra/base-images/base-builder/jcc/jcc2.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/infra/base-images/base-builder/jcc/jcc2.go b/infra/base-images/base-builder/jcc/jcc2.go index 398eea0fb37f..a2d9e73ea2f5 100644 --- a/infra/base-images/base-builder/jcc/jcc2.go +++ b/infra/base-images/base-builder/jcc/jcc2.go @@ -344,8 +344,8 @@ type BuildCommand struct { } func WriteTargetArgsAndCommitImage(cmdline []string) { - fmt.Println("WRITE COMMAND") - f, _ := os.OpenFile("/out/statefile.json", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) + log.Println("WRITE COMMAND") + f, _ := os.OpenFile("/out/statefile.json", os.O_CREATE|os.O_WRONLY, 0644) wd, _ := os.Getwd() buildcmd := BuildCommand{ CWD: wd, @@ -368,7 +368,8 @@ func WriteTargetArgsAndCommitImage(cmdline []string) { func IsCompilingTarget(cmdline []string) bool { for _, arg := range cmdline { - // This can fail if people do crazy things they aren't supposed to e.g. + // This can fail if people do crazy things they aren't supposed + // to such as using some other means to link in libFuzzer. if arg == "-fsanitize=fuzzer" { return true }