diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-06-21 01:40:13 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-06-21 01:40:13 +0000 |
commit | 87909fa28e55346e164f7c1ea3bec21aa9e1e01d (patch) | |
tree | eb3b9515fd164afd1e2242b99a26c047f8719bfe /include | |
parent | 74d376fd3728d44299a0fa2a9c15cd8012cb1b47 (diff) |
Version 0.1.12 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@465 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/logger.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index c819d7ac5..793ed30c7 100755 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -37,7 +37,8 @@ extern "C" { * ast_log(LOG_WHATEVER, "Problem with the %s Captain. We should get some more. Will %d be enough?", "flux capacitor", 10); * where WHATEVER is one of ERROR, DEBUG, EVENT, NOTICE, or WARNING depending on which log you wish to output to. */ -extern void ast_log(int level, char *file, int line, char *function, char *fmt, ...); +extern void ast_log(int level, char *file, int line, char *function, char *fmt, ...) + __attribute__ ((format (printf, 5, 6))); //! Send a verbose message (based on verbose level) /*! @@ -47,7 +48,8 @@ extern void ast_log(int level, char *file, int line, char *function, char *fmt, * Note the abscence of a comma after the VERBOSE_PREFIX_3. This is important. * VERBOSE_PREFIX_1 through VERBOSE_PREFIX_3 are defined. */ -extern void ast_verbose(char *fmt, ...); +extern void ast_verbose(char *fmt, ...) + __attribute__ ((format (printf, 1, 2))); extern int ast_register_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete)); extern int ast_unregister_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete)); |