summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2018-07-28 12:16:30 +0200
committerDenys Vlasenko2018-07-28 12:16:30 +0200
commita8e7441176ec945a1bfb117a1067ac3a6680a19c (patch)
treee3e0306b363288a77b014cec6935435f50366dbd /shell
parentaa449c927d1d84092f9654e45ab9f68847e81226 (diff)
downloadbusybox-a8e7441176ec945a1bfb117a1067ac3a6680a19c.zip
busybox-a8e7441176ec945a1bfb117a1067ac3a6680a19c.tar.gz
hush: disable debug_indent increment/decrement for HUSH_DEBUG < 2 builds
function old new delta run_list 1063 1046 -17 parse_stream 2296 2249 -47 run_pipe 1890 1840 -50 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-114) Total: -114 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 9676819..14681aa 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -999,7 +999,7 @@ struct globals {
int x_mode_fd;
o_string x_mode_buf;
#endif
-#if HUSH_DEBUG
+#if HUSH_DEBUG >= 2
int debug_indent;
#endif
struct sigaction sa;
@@ -1221,7 +1221,7 @@ static const struct built_in_command bltins2[] = {
/* Debug printouts.
*/
-#if HUSH_DEBUG
+#if HUSH_DEBUG >= 2
/* prevent disasters with G.debug_indent < 0 */
# define indent() fdprintf(2, "%*s", (G.debug_indent * 2) & 0xff, "")
# define debug_enter() (G.debug_indent++)