Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): clean up debug output for running jobs



details:   https://anonhg.NetBSD.org/src/rev/e519072c5078
branches:  trunk
changeset: 956800:e519072c5078
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 08 00:54:06 2020 +0000

description:
make(1): clean up debug output for running jobs

There is no remote anymore, therefore mentioning locally is redundant.
It was a bad idea anyway to build format strings that work with parts of
words.

diffstat:

 usr.bin/make/job.c                         |  6 +++---
 usr.bin/make/unit-tests/opt-debug-jobs.exp |  2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r f626404a5747 -r e519072c5078 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Sun Nov 08 00:28:52 2020 +0000
+++ b/usr.bin/make/job.c        Sun Nov 08 00:54:06 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.310 2020/11/07 21:24:33 rillig Exp $ */
+/*     $NetBSD: job.c,v 1.311 2020/11/08 00:54:06 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -143,7 +143,7 @@
 #include "trace.h"
 
 /*     "@(#)job.c      8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: job.c,v 1.310 2020/11/07 21:24:33 rillig Exp $");
+MAKE_RCSID("$NetBSD: job.c,v 1.311 2020/11/08 00:54:06 rillig Exp $");
 
 /* A shell defines how the commands are run.  All commands for a target are
  * written into a single file, which is then given to the shell to execute
@@ -1279,7 +1279,7 @@
     if (DEBUG(JOB)) {
        int i;
 
-       debug_printf("Running %s %sly\n", job->node->name, "local");
+       debug_printf("Running %s\n", job->node->name);
        debug_printf("\tCommand: ");
        for (i = 0; argv[i] != NULL; i++) {
            debug_printf("%s ", argv[i]);
diff -r f626404a5747 -r e519072c5078 usr.bin/make/unit-tests/opt-debug-jobs.exp
--- a/usr.bin/make/unit-tests/opt-debug-jobs.exp        Sun Nov 08 00:28:52 2020 +0000
+++ b/usr.bin/make/unit-tests/opt-debug-jobs.exp        Sun Nov 08 00:54:06 2020 +0000
@@ -10,7 +10,7 @@
 echo ": 'single' and \"double\" quotes"
 { : 'single' and "double" quotes 
 } || exit $?
-Running all locally
+Running all
        Command: sh 
 JobExec(all): pid <pid> added to jobs table
 job table @ job started



Home | Main Index | Thread Index | Old Index