From: Sergey Matveev Date: Fri, 16 Jan 2026 12:13:01 +0000 (+0300) Subject: Add separator after the target for human convenience X-Git-Tag: v2.9.0~3 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e3c3424b81a1dae9791e6dfae66593b5823652e3;p=goredo.git Add separator after the target for human convenience --- diff --git a/js.go b/js.go index d559573..4a961d3 100644 --- a/js.go +++ b/js.go @@ -179,7 +179,7 @@ func jsRelease(ctx string, token byte) { if JSW == nil { return } - tracef(CJS, "release from %s", ctx) + tracef(CJS, "release from: %s", ctx) jsTokensM.Lock() jsTokens[token]-- jsReleaseNoLock(token) @@ -200,7 +200,7 @@ func jsAcquire(ctx string) byte { if JSR == nil { return BMakeGoodToken } - tracef(CJS, "acquire for %s", ctx) + tracef(CJS, "acquire for: %s", ctx) token := []byte{0} if n, err := JSR.Read(token); err != nil || n != 1 { log.Fatalln("can not read JSR:", err) @@ -208,6 +208,6 @@ func jsAcquire(ctx string) byte { jsTokensM.Lock() jsTokens[token[0]]++ jsTokensM.Unlock() - tracef(CJS, "acquired for %s", ctx) + tracef(CJS, "acquired for: %s", ctx) return token[0] } diff --git a/run.go b/run.go index 03c46f5..412e895 100644 --- a/run.go +++ b/run.go @@ -291,7 +291,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error { return fmt.Errorf("%s externally modified", tgt) } Jobs.Add(1) - tracef(CWarn, "%s externally modified: not redoing", tgt) + tracef(CWarn, "%s: externally modified: not redoing", tgt) go func() { errs <- nil Jobs.Done() @@ -304,7 +304,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error { return fmt.Errorf("%s already existing", tgt) } Jobs.Add(1) - tracef(CWarn, "%s already existing: not redoing", tgt) + tracef(CWarn, "%s: already existing: not redoing", tgt) go func() { errs <- nil Jobs.Done() @@ -635,7 +635,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error { RunningProcs[cmd.Process.Pid] = cmd.Process RunningProcsM.Unlock() pid := fmt.Sprintf("[%d]", cmd.Process.Pid) - tracef(CDebug, "%s runs %s", tgt, pid) + tracef(CDebug, "%s: runs %s", tgt, pid) stderrTerm := make(chan struct{}) go func() { @@ -765,7 +765,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error { goto Finish } if hsh == hshPrev { - tracef(CDebug, "%s has same hash, not renaming", tgt) + tracef(CDebug, "%s: has same hash, not renaming", tgt) err = ErrLine(os.Remove(fd.Name())) if err != nil { goto Finish @@ -850,7 +850,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error { } for _, ifcreate := range dep.ifcreates { if _, exists := ifchangeSeen[ifcreate.a]; exists { - tracef(CWarn, "simultaneous ifcreate and ifchange records: %s", tgt) + tracef(CWarn, "%s: simultaneous ifcreate and ifchange records", tgt) } } } else if errors.Is(err, fs.ErrNotExist) {