[asterisk-commits] russell: branch 1.4 r117479 - /branches/1.4/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 21 13:11:52 CDT 2008


Author: russell
Date: Wed May 21 13:11:51 2008
New Revision: 117479

URL: http://svn.digium.com/view/asterisk?view=rev&rev=117479
Log:
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

Modified:
    branches/1.4/main/asterisk.c

Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=117479&r1=117478&r2=117479
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Wed May 21 13:11:51 2008
@@ -1370,8 +1370,12 @@
 	    (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);
 	




More information about the asterisk-commits mailing list