From 677d16cfd5b16c0fac4f6f432db027faf068a95f Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Mon, 1 Oct 2012 01:26:20 +0200 Subject: [PATCH] scripts/trace/sipgrep: correctly interpret option -C (print ANSI colors in debug file only when option -C is defined) --- scripts/trace/sipgrep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/trace/sipgrep b/scripts/trace/sipgrep index 474a2d5c7b..3b3796925e 100755 --- a/scripts/trace/sipgrep +++ b/scripts/trace/sipgrep @@ -286,8 +286,8 @@ sub print_out if(defined $filedebug) { open(DBG, ">>$filedebug"); - $lcolor = 'reset' if(!(defined $debugfilecolors)); - print DBG color $lcolor if(!(defined $debugfilecolors)); + $lcolor = 'reset' if((defined $debugfilecolors)); + print DBG color $lcolor if((defined $debugfilecolors)); print DBG $ltext; close(DBG); }