Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Don't print the location of the include direc...



details:   https://anonhg.NetBSD.org/src/rev/bede7c9a64a5
branches:  trunk
changeset: 974267:bede7c9a64a5
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Jul 26 22:25:47 2020 +0000

description:
Don't print the location of the include directive twice.

cfgdbg() already prints the current file and line number, so don't
print the same information ourselves in the message too.

diffstat:

 usr.bin/config/scan.l |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 40a58cb0009e -r bede7c9a64a5 usr.bin/config/scan.l
--- a/usr.bin/config/scan.l     Sun Jul 26 22:19:11 2020 +0000
+++ b/usr.bin/config/scan.l     Sun Jul 26 22:25:47 2020 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: scan.l,v 1.32 2020/04/03 19:53:41 joerg Exp $  */
+/*     $NetBSD: scan.l,v 1.33 2020/07/26 22:25:47 uwe Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: scan.l,v 1.32 2020/04/03 19:53:41 joerg Exp $");
+__RCSID("$NetBSD: scan.l,v 1.33 2020/07/26 22:25:47 uwe Exp $");
 
 #include <sys/param.h>
 #include <errno.h>
@@ -555,7 +555,7 @@
        if (interesting)
                logconfig_include(fp, fname);
        incl = in;
-       CFGDBG(1, "include `%s' from `%s' line %d", fname, yyfile, yyline);
+       CFGDBG(1, "include `%s'", fname);
        yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
        yyfile = intern(s);
        yyline = 1;



Home | Main Index | Thread Index | Old Index