Commit a841d6b2 authored by Ariadne Conill's avatar Ariadne Conill

print: don't shadow log()

parent 5ba27c90
...@@ -157,7 +157,7 @@ const char *apk_error_str(int error) ...@@ -157,7 +157,7 @@ const char *apk_error_str(int error)
} }
} }
static void log(FILE *dest, const char *prefix, const char *format, va_list va) static void log_internal(FILE *dest, const char *prefix, const char *format, va_list va)
{ {
if (prefix != NULL) if (prefix != NULL)
fprintf(dest, "%s", prefix); fprintf(dest, "%s", prefix);
...@@ -171,7 +171,7 @@ void apk_log(const char *prefix, const char *format, ...) ...@@ -171,7 +171,7 @@ void apk_log(const char *prefix, const char *format, ...)
{ {
va_list va; va_list va;
va_start(va, format); va_start(va, format);
log(stdout, prefix, format, va); log_internal(stdout, prefix, format, va);
va_end(va); va_end(va);
} }
...@@ -179,6 +179,6 @@ void apk_log_err(const char *prefix, const char *format, ...) ...@@ -179,6 +179,6 @@ void apk_log_err(const char *prefix, const char *format, ...)
{ {
va_list va; va_list va;
va_start(va, format); va_start(va, format);
log(stderr, prefix, format, va); log_internal(stderr, prefix, format, va);
va_end(va); va_end(va);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment