aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/error.c8
-rw-r--r--src/log.c6
2 files changed, 6 insertions, 8 deletions
diff --git a/src/error.c b/src/error.c
index f4a2af00..e30e7b03 100644
--- a/src/error.c
+++ b/src/error.c
@@ -61,11 +61,9 @@ void _ssh_set_error(void *error,
va_end(va);
err->error.error_code = code;
- ssh_log_common(err,
- SSH_LOG_WARN,
- function,
- "Error: %s",
- err->error.error_buffer);
+ ssh_log_function(SSH_LOG_WARN,
+ function,
+ err->error.error_buffer);
}
/**
diff --git a/src/log.c b/src/log.c
index 9396cb93..fba5fdc4 100644
--- a/src/log.c
+++ b/src/log.c
@@ -91,9 +91,9 @@ static void ssh_log_stderr(int verbosity,
fprintf(stderr, " %s\n", buffer);
}
-static void ssh_log_function(int verbosity,
- const char *function,
- const char *buffer)
+void ssh_log_function(int verbosity,
+ const char *function,
+ const char *buffer)
{
ssh_logging_callback log_fn = ssh_get_log_callback();
if (log_fn) {