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.
This commit is contained in:
parent
c6081c098c
commit
61a3ba024d
@ -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 @@ include(const char *fname, int ateof, int conditional, int direct)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user