From c8f48a247808fe9ad8a59774545f527dbea71cfc Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 10 Sep 2011 11:49:53 +0200 Subject: log: Improve the logging function. --- include/libssh/priv.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libssh/priv.h') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index d7ba68df..7493d145 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -263,6 +263,14 @@ int ssh_options_apply(ssh_session session); /* server.c */ SSH_PACKET_CALLBACK(ssh_packet_kexdh_init); +/* LOGGING */ +#define SSH_LOG(session, priority, ...) \ + _ssh_log(session, priority, __FUNCTION__, __VA_ARGS__) +void ssh_log_function(ssh_session session, + int prioriry, + const char *function, + const char *format, ...) PRINTF_ATTRIBUTE(4, 5); + /** Free memory space */ #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0) -- cgit