]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
scripts/trace/sipgrep: correctly interpret option -C (print ANSI colors in debug...
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Sun, 30 Sep 2012 23:26:20 +0000 (01:26 +0200)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Sun, 30 Sep 2012 23:26:57 +0000 (01:26 +0200)
scripts/trace/sipgrep

index 474a2d5c7b58bf8e017a96da68d62f9efb09c406..3b3796925e2aa46676b98cf8bef3fd57c58071a3 100755 (executable)
@@ -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);     
     }