mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Merged revisions 115333 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r115333 | tilghman | 2008-05-05 17:50:31 -0500 (Mon, 05 May 2008) | 7 lines Separate verbose output from CLI output, by using a preamble. (closes issue #12402) Reported by: Corydon76 Patches: 20080410__no_verbose_in_rx_output.diff.txt uploaded by Corydon76 (license 14) 20080501__no_verbose_in_rx_output__1.4.diff.txt uploaded by Corydon76 (license 14) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1176,8 +1176,12 @@ void ast_verbose(const char *fmt, ...)
|
||||
ast_localtime(&tv, &tm, NULL);
|
||||
ast_strftime(date, sizeof(date), dateformat, &tm);
|
||||
datefmt = alloca(strlen(date) + 3 + strlen(fmt) + 1);
|
||||
sprintf(datefmt, "[%s] %s", date, fmt);
|
||||
sprintf(datefmt, "%c[%s] %s", 127, date, fmt);
|
||||
fmt = datefmt;
|
||||
} else {
|
||||
char *tmp = alloca(strlen(fmt) + 2);
|
||||
sprintf(tmp, "%c%s", 127, fmt);
|
||||
fmt = tmp;
|
||||
}
|
||||
|
||||
/* Build string */
|
||||
@@ -1194,7 +1198,7 @@ void ast_verbose(const char *fmt, ...)
|
||||
|
||||
strcpy(logmsg->str, buf->str);
|
||||
|
||||
ast_log(LOG_VERBOSE, "%s", logmsg->str);
|
||||
ast_log(LOG_VERBOSE, "%s", logmsg->str + 1);
|
||||
|
||||
/* Set type */
|
||||
logmsg->type = LOGMSG_VERBOSE;
|
||||
|
Reference in New Issue
Block a user