aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-14 12:36:59 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-14 12:36:59 +0200
commit2c91efcc68d9a6aff9163e81df7a5024703084d4 (patch)
treeb9cadb84146bab8e7d2a27c4e153b5caf3f73bde /include/libssh/priv.h
parent73309f19e582a712e78f54988fc51dbc5ab60bf4 (diff)
downloadlibssh-2c91efcc68d9a6aff9163e81df7a5024703084d4.tar.gz
libssh-2c91efcc68d9a6aff9163e81df7a5024703084d4.tar.xz
libssh-2c91efcc68d9a6aff9163e81df7a5024703084d4.zip
log: Implment new logging functions.
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index d7974026..35a6e4f3 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -152,15 +152,17 @@ struct ssh_kex_struct;
int ssh_get_key_params(ssh_session session, ssh_key *privkey);
/* LOGGING */
-#define SSH_LOG(session, priority, ...) \
- ssh_log_common(&session->common, priority, __FUNCTION__, __VA_ARGS__)
+void _ssh_log(int verbosity,
+ const char *function,
+ const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
+#define SSH_LOG(priority, ...) \
+ _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
+
+/* LEGACY */
void ssh_log_common(struct ssh_common_struct *common,
int verbosity,
const char *function,
const char *format, ...) PRINTF_ATTRIBUTE(4, 5);
-void ssh_log_function(int verbosity,
- const char *function,
- const char *buffer);
/* ERROR HANDLING */