Don't display the verbose marker for calls to ast_verbose() that do not include

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
This commit is contained in:
Russell Bryant
2008-05-21 18:11:51 +00:00
parent e9e2df2283
commit 8183ebfbcc

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