]> Cypherpunks repositories - goredo.git/commitdiff
Add separator after the target for human convenience
authorSergey Matveev <stargrave@stargrave.org>
Fri, 16 Jan 2026 12:13:01 +0000 (15:13 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 16 Jan 2026 13:52:31 +0000 (16:52 +0300)
js.go
run.go

diff --git a/js.go b/js.go
index d55957319a84253cdddbc6b06230f34dfdad5b15..4a961d37d96499c87113a8214ff2764cad9f693e 100644 (file)
--- 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 03c46f51eef672342193afef0a52f72100e357e9..412e895d031d4ff8e379cd33f3359735aa0006cb 100644 (file)
--- 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) {