Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Add debug output for ENDDEFS.



details:   https://anonhg.NetBSD.org/src/rev/73a05a04444e
branches:  trunk
changeset: 936441:73a05a04444e
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Jul 26 22:40:52 2020 +0000

description:
Add debug output for ENDDEFS.

This makes it more clear in the debug output where config switched
from definitions to selections.

diffstat:

 usr.bin/config/gram.y |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r e89375b8f210 -r 73a05a04444e usr.bin/config/gram.y
--- a/usr.bin/config/gram.y     Sun Jul 26 22:25:47 2020 +0000
+++ b/usr.bin/config/gram.y     Sun Jul 26 22:40:52 2020 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: gram.y,v 1.55 2020/03/07 19:26:13 christos Exp $       */
+/*     $NetBSD: gram.y,v 1.56 2020/07/26 22:40:52 uwe Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: gram.y,v 1.55 2020/03/07 19:26:13 christos Exp $");
+__RCSID("$NetBSD: gram.y,v 1.56 2020/07/26 22:40:52 uwe Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -306,7 +306,11 @@
 
 /* Complete definition part: the contents of all files.* files. */
 definition_part:
-       definitions ENDDEFS             { check_maxpart(); check_version(); }
+       definitions ENDDEFS             {
+               CFGDBG(1, "ENDDEFS");
+               check_maxpart();
+               check_version();
+       }
 ;
 
 /* Zero or more definitions. Trap errors. */



Home | Main Index | Thread Index | Old Index