diff --git a/src/xspice/evt/evtcheck_nodes.c b/src/xspice/evt/evtcheck_nodes.c index 80c94f6ad..2983d3b1a 100644 --- a/src/xspice/evt/evtcheck_nodes.c +++ b/src/xspice/evt/evtcheck_nodes.c @@ -187,10 +187,15 @@ static struct card *expand_deck(struct card *head) struct card *card, *next; char **pointers; int i, dico; + bool save_debug; - /* Save the current parameter symbol table. */ + /* Save the current parameter symbol table and debug global. + * Prevent overwriting of debug output in inp_readall(). + */ dico = nupa_add_dicoslist(); + save_debug = ft_ngdebug; + ft_ngdebug = FALSE; /* Count the cards, allocate and fill a pointer array. */ @@ -213,6 +218,7 @@ static struct card *expand_deck(struct card *head) circarray = pointers; card = inp_readall(NULL, Infile_Path, FALSE, TRUE, NULL); card = inp_subcktexpand(card); + ft_ngdebug = save_debug; /* Destroy the parameter table that was created in subcircuit/parameter * expansion and restore the previous version.