← Commit list

a8e744117

Denys Vlasenko
Denys Vlasenko
2018-07-28
SUCCESS Duration: 149s

Subject

hush: disable debug_indent increment/decrement for HUSH_DEBUG < 2 builds

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush.c+2 -2
@@ -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++)