aboutsummaryrefslogtreecommitdiffstats
path: root/main/logger.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-21 22:34:27 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-21 22:34:27 +0000
commit549f37623bb6c5f462f63608f453fe21c89292ec (patch)
treeb4daa61a1227e0b8a13da3c6030a45598a8a2e2f /main/logger.c
parentcf71ad1d29c460e3cf391b56230a72df6b5782c1 (diff)
This change makes it so that logs will report the correct source of verbose messages.
Until this change, all verbose messages in Asterisk's log files reported logger.c as the source of the message. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117693 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/logger.c b/main/logger.c
index cc062d968..a4936badd 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -1156,7 +1156,7 @@ void ast_backtrace(void)
#endif
}
-void ast_verbose(const char *fmt, ...)
+void __ast_verbose(const char *file, int line, const char *func, const char *fmt, ...)
{
struct logmsg *logmsg = NULL;
struct ast_str *buf = NULL;
@@ -1198,7 +1198,7 @@ void ast_verbose(const char *fmt, ...)
strcpy(logmsg->str, buf->str);
- ast_log(LOG_VERBOSE, "%s", logmsg->str + 1);
+ ast_log(__LOG_VERBOSE, file, line, func, "%s", logmsg->str + 1);
/* Set type */
logmsg->type = LOGMSG_VERBOSE;