[asterisk-commits] russell: branch
russell/ast_verbose_threadstorage r38401 - /team/russell/ast_...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jul 27 19:31:25 MST 2006
Author: russell
Date: Thu Jul 27 21:31:24 2006
New Revision: 38401
URL: http://svn.digium.com/view/asterisk?rev=38401&view=rev
Log:
further simplify the console verboser by removing code that is not needed
Modified:
team/russell/ast_verbose_threadstorage/asterisk.c
Modified: team/russell/ast_verbose_threadstorage/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/russell/ast_verbose_threadstorage/asterisk.c?rev=38401&r1=38400&r2=38401&view=diff
==============================================================================
--- team/russell/ast_verbose_threadstorage/asterisk.c (original)
+++ team/russell/ast_verbose_threadstorage/asterisk.c Thu Jul 27 21:31:24 2006
@@ -1178,31 +1178,9 @@
quit_handler(num, 0, 1, 0);
}
-static const char *fix_header(char *outbuf, int maxout, const char *s, char *cmp)
-{
- const char *c;
- if (!strncmp(s, cmp, strlen(cmp))) {
- c = s + strlen(cmp);
- term_color(outbuf, cmp, COLOR_GRAY, 0, maxout);
- return c;
- }
- return NULL;
-}
-
static void console_verboser(const char *s)
{
- char tmp[80];
- const char *c = NULL;
-
- if ((c = fix_header(tmp, sizeof(tmp), s, VERBOSE_PREFIX_4)) ||
- (c = fix_header(tmp, sizeof(tmp), s, VERBOSE_PREFIX_3)) ||
- (c = fix_header(tmp, sizeof(tmp), s, VERBOSE_PREFIX_2)) ||
- (c = fix_header(tmp, sizeof(tmp), s, VERBOSE_PREFIX_1))) {
- fputs(tmp, stdout);
- fputs(c, stdout);
- } else
- fputs(s, stdout);
-
+ fputs(s, stdout);
fflush(stdout);
/* Wake up a poll()ing console */
More information about the asterisk-commits
mailing list