summaryrefslogtreecommitdiff
path: root/src/apk_print.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_print.h')
-rw-r--r--src/apk_print.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/apk_print.h b/src/apk_print.h
index 590b8f3..841107d 100644
--- a/src/apk_print.h
+++ b/src/apk_print.h
@@ -14,13 +14,14 @@
#include "apk_blob.h"
-#define apk_error(args...) do { apk_log("ERROR: ", args); } while (0)
-#define apk_warning(args...) do { if (apk_verbosity > 0) { apk_log("WARNING: ", args); } } while (0)
+#define apk_error(args...) do { apk_log_err("ERROR: ", args); } while (0)
+#define apk_warning(args...) do { if (apk_verbosity > 0) { apk_log_err("WARNING: ", args); } } while (0)
#define apk_message(args...) do { if (apk_verbosity > 0) { apk_log(NULL, args); } } while (0)
extern int apk_progress_fd;
void apk_log(const char *prefix, const char *format, ...);
+void apk_log_err(const char *prefix, const char *format, ...);
const char *apk_error_str(int error);
void apk_reset_screen_width(void);