aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/logger.h
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 /include/asterisk/logger.h
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 'include/asterisk/logger.h')
-rw-r--r--include/asterisk/logger.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h
index 9ed2dc922..4995c54c2 100644
--- a/include/asterisk/logger.h
+++ b/include/asterisk/logger.h
@@ -75,8 +75,10 @@ void ast_queue_log(const char *queuename, const char *callid, const char *agent,
Note the abscence of a comma after the VERBOSE_PREFIX_3. This is important.
VERBOSE_PREFIX_1 through VERBOSE_PREFIX_3 are defined.
*/
-void ast_verbose(const char *fmt, ...)
- __attribute__ ((format (printf, 1, 2)));
+void __ast_verbose(const char *file, int line, const char *func, const char *fmt, ...)
+ __attribute__ ((format (printf, 4, 5)));
+
+#define ast_verbose(...) __ast_verbose(__FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__)
void ast_child_verbose(int level, const char *fmt, ...)
__attribute__ ((format (printf, 2, 3)));