]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't display the verbose marker for calls to ast_verbose() that do not include
authorRussell Bryant <russell@russellbryant.com>
Wed, 21 May 2008 18:11:51 +0000 (18:11 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 21 May 2008 18:11:51 +0000 (18:11 +0000)
a VERBOSE_PREFIX in front of the message.
(closes issue #12702)
Reported by: johnlange
Patched by me

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@117479 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index 934a61731735ea201d8b541fac29a733d5da1424..ef6c64de67d75d6074540b309a9feec820a1a750 100644 (file)
@@ -1370,8 +1370,12 @@ static void console_verboser(const char *s)
            (c = fix_header(tmp, sizeof(tmp), s, VERBOSE_PREFIX_1))) {
                fputs(tmp, stdout);
                fputs(c, stdout);
-       } else
+       } else {
+               if (*s == 127) {
+                       s++;
+               }
                fputs(s, stdout);
+       }
 
        fflush(stdout);