diff options
author | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-03-16 22:37:31 +0000 |
---|---|---|
committer | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-03-16 22:37:31 +0000 |
commit | 61e446f04b2bdcc41f6420e3cf9ed466ed80c3ed (patch) | |
tree | 42e44ab95928950f65a80b2dd298dc79f9b82a8e /include/asterisk/logger.h | |
parent | 7640e83360c2dfc792091caeaea05cc9fce0635c (diff) |
dom mar 16 23:37:23 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/logger.h')
-rwxr-xr-x | include/asterisk/logger.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index 793ed30c7..62eb34f65 100755 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -37,7 +37,7 @@ 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, const char *file, int line, const char *function, const char *fmt, ...) __attribute__ ((format (printf, 5, 6))); //! Send a verbose message (based on verbose level) @@ -48,12 +48,12 @@ 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(const 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)); -extern int ast_verbose_dmesg(void (*verboser)(char *string, int opos, int replacelast, int complete)); +extern int ast_register_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete)); +extern int ast_unregister_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete)); +extern int ast_verbose_dmesg(void (*verboser)(const char *string, int opos, int replacelast, int complete)); #define _A_ __FILE__, __LINE__, __PRETTY_FUNCTION__ #define LOG_DEBUG 0, _A_ |