mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-11 17:22:40 +03:00
error: Use new logging function.
This commit is contained in:
@@ -152,6 +152,10 @@ struct ssh_kex_struct;
|
||||
int ssh_get_key_params(ssh_session session, ssh_key *privkey);
|
||||
|
||||
/* LOGGING */
|
||||
void ssh_log_function(int verbosity,
|
||||
const char *function,
|
||||
const char *buffer);
|
||||
|
||||
void _ssh_log(int verbosity,
|
||||
const char *function,
|
||||
const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
|
||||
|
@@ -61,10 +61,8 @@ void _ssh_set_error(void *error,
|
||||
va_end(va);
|
||||
|
||||
err->error.error_code = code;
|
||||
ssh_log_common(err,
|
||||
SSH_LOG_WARN,
|
||||
ssh_log_function(SSH_LOG_WARN,
|
||||
function,
|
||||
"Error: %s",
|
||||
err->error.error_buffer);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user