X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilclog.h;h=4d00f05f0d97220745cb78b744c9e95686521957;hb=4d35af3be05cacf69ca4bd634973cdcd25118e98;hp=cd34639f3d1fc994cd0c45ad54b3e11ec7361b5a;hpb=e14cef8f772a6f73f05254ae220a3a83981ea753;p=silc.git diff --git a/lib/silcutil/silclog.h b/lib/silcutil/silclog.h index cd34639f..4d00f05f 100644 --- a/lib/silcutil/silclog.h +++ b/lib/silcutil/silclog.h @@ -70,19 +70,19 @@ extern unsigned int log_fatal_size; #define SILC_LOG_INFO(fmt) (silc_log_output(log_info_file, \ log_info_size, \ SILC_LOG_INFO, \ - silc_log_format fmt)) + silc_format fmt)) #define SILC_LOG_WARNING(fmt) (silc_log_output(log_warning_file, \ log_warning_size, \ SILC_LOG_WARNING, \ - silc_log_format fmt)) + silc_format fmt)) #define SILC_LOG_ERROR(fmt) (silc_log_output(log_error_file, \ log_error_size, \ SILC_LOG_ERROR, \ - silc_log_format fmt)) + silc_format fmt)) #define SILC_LOG_FATAL(fmt) (silc_log_output(log_fatal_file, \ log_fatal_size, \ SILC_LOG_FATAL, \ - silc_log_format fmt)) + silc_format fmt)) /* Debug macro is a bit different from other logging macros and it is compiled in only if debugging is enabled. */ @@ -90,20 +90,19 @@ extern unsigned int log_fatal_size; #define SILC_LOG_DEBUG(fmt) (silc_log_output_debug(__FILE__, \ __FUNCTION__, \ __LINE__, \ - silc_log_format fmt)) + silc_format fmt)) #define SILC_LOG_HEXDUMP(fmt, data, len) \ (silc_log_output_hexdump(__FILE__, \ __FUNCTION__, \ __LINE__, \ (data), (len), \ - silc_log_format fmt)) + silc_format fmt)) #else #define SILC_LOG_DEBUG(fmt) #define SILC_LOG_HEXDUMP(fmt, data, len) #endif /* Prototypes */ -char *silc_log_format(char *fmt, ...); void silc_log_output_debug(char *file, char *function, int line, char *string); void silc_log_output(const char *filename, unsigned int maxsize,