From bd19ba30fdc5fbb3e8b079c1d0f72aacee1585c3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 17 Sep 2015 20:34:50 +0000 Subject: [PATCH] scripts/specialize-patch: Add more debugging output git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6512 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index edf903464..529742af7 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -374,9 +374,12 @@ function process_preprocessor_statement(evaluated, condition) { if (condition) { output = 1 + if (debug) + printf "/* debug specialize-patch: (g1a) if_nesting_level = %d */\n", \ + if_nesting_level for (i = if_nesting_level; i >= 0; i--) { if (debug) - printf "/* debug specialize-patch: (g1) %s: decision[%d] = %s */\n", \ + printf "/* debug specialize-patch: (g1b) %s: decision[%d] = %s */\n", \ evaluated, i, decision[i] output = output && decision[i] != "+#if 0" && decision[i] != "+#elif 0" }