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); }