Module Name: src Committed By: rillig Date: Tue Apr 27 16:23:21 UTC 2021
Modified Files: src/usr.bin/make: job.c src/usr.bin/make/unit-tests: opt-debug-errors-jobs.exp Log Message: make: remove stray space in -de output in jobs mode In compat mode, having a space in this place makes sense to align the target name with the command. In jobs mode, since each command is listed in a separate line, there is no need for the double space. To generate a diff of this commit: cvs rdiff -u -r1.430 -r1.431 src/usr.bin/make/job.c cvs rdiff -u -r1.1 -r1.2 \ src/usr.bin/make/unit-tests/opt-debug-errors-jobs.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/job.c diff -u src/usr.bin/make/job.c:1.430 src/usr.bin/make/job.c:1.431 --- src/usr.bin/make/job.c:1.430 Tue Apr 27 15:21:42 2021 +++ src/usr.bin/make/job.c Tue Apr 27 16:23:21 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: job.c,v 1.430 2021/04/27 15:21:42 christos Exp $ */ +/* $NetBSD: job.c,v 1.431 2021/04/27 16:23:21 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -142,7 +142,7 @@ #include "trace.h" /* "@(#)job.c 8.2 (Berkeley) 3/19/94" */ -MAKE_RCSID("$NetBSD: job.c,v 1.430 2021/04/27 15:21:42 christos Exp $"); +MAKE_RCSID("$NetBSD: job.c,v 1.431 2021/04/27 16:23:21 rillig Exp $"); /* * A shell defines how the commands are run. All commands for a target are @@ -1068,7 +1068,7 @@ DebugFailedJob(const Job *job) if (!DEBUG(ERROR)) return; - debug_printf("\n*** Failed target: %s\n*** Failed commands:\n", + debug_printf("\n*** Failed target: %s\n*** Failed commands:\n", job->node->name); for (l = job->node->commands.first; l != NULL; l = l->next) { debug_printf("\t%s\n", (const char *)l->datum); Index: src/usr.bin/make/unit-tests/opt-debug-errors-jobs.exp diff -u src/usr.bin/make/unit-tests/opt-debug-errors-jobs.exp:1.1 src/usr.bin/make/unit-tests/opt-debug-errors-jobs.exp:1.2 --- src/usr.bin/make/unit-tests/opt-debug-errors-jobs.exp:1.1 Tue Apr 27 16:20:06 2021 +++ src/usr.bin/make/unit-tests/opt-debug-errors-jobs.exp Tue Apr 27 16:23:21 2021 @@ -1,7 +1,7 @@ echo '3 spaces'; false 3 spaces -*** Failed target: fail-spaces +*** Failed target: fail-spaces *** Failed commands: echo '3 spaces'; false *** [fail-spaces] Error code 1 @@ -10,7 +10,7 @@ make: stopped in unit-tests echo \ indented; false indented -*** Failed target: fail-escaped-space +*** Failed target: fail-escaped-space *** Failed commands: echo \ indented; false *** [fail-escaped-space] Error code 1 @@ -21,7 +21,7 @@ line2'; false line1 line2 -*** Failed target: fail-newline +*** Failed target: fail-newline *** Failed commands: echo 'line1${.newline}line2'; false *** [fail-newline] Error code 1 @@ -30,7 +30,7 @@ make: stopped in unit-tests echo 'line1 line2'; false line1 line2 -*** Failed target: fail-multiline +*** Failed target: fail-multiline *** Failed commands: echo 'line1 line2'; false *** [fail-multiline] Error code 1 @@ -39,7 +39,7 @@ make: stopped in unit-tests echo 'word1' 'word2'; false word1 word2 -*** Failed target: fail-multiline-intention +*** Failed target: fail-multiline-intention *** Failed commands: echo 'word1' 'word2'; false *** [fail-multiline-intention] Error code 1