Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Report node name rather than (null) when modifi...
details: https://anonhg.NetBSD.org/src/rev/7c724ff7aba6
branches: trunk
changeset: 348837:7c724ff7aba6
user: sjg <sjg%NetBSD.org@localhost>
date: Thu Nov 10 23:41:58 2016 +0000
description:
Report node name rather than (null) when modified before src
diffstat:
usr.bin/make/make.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r d3c38217ae8a -r 7c724ff7aba6 usr.bin/make/make.c
--- a/usr.bin/make/make.c Thu Nov 10 22:28:00 2016 +0000
+++ b/usr.bin/make/make.c Thu Nov 10 23:41:58 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: make.c,v 1.95 2016/02/18 18:29:14 christos Exp $ */
+/* $NetBSD: make.c,v 1.96 2016/11/10 23:41:58 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: make.c,v 1.95 2016/02/18 18:29:14 christos Exp $";
+static char rcsid[] = "$NetBSD: make.c,v 1.96 2016/11/10 23:41:58 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)make.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: make.c,v 1.95 2016/02/18 18:29:14 christos Exp $");
+__RCSID("$NetBSD: make.c,v 1.96 2016/11/10 23:41:58 sjg Exp $");
#endif
#endif /* not lint */
#endif
@@ -308,7 +308,7 @@
if (DEBUG(MAKE)) {
if (gn->cmgn != NULL && gn->mtime < gn->cmgn->mtime) {
fprintf(debug_file, "modified before source %s...",
- gn->cmgn->path);
+ gn->cmgn->path ? gn->cmgn->path : gn->cmgn->name);
} else if (gn->mtime == 0) {
fprintf(debug_file, "non-existent and no sources...");
} else {
Home |
Main Index |
Thread Index |
Old Index