diff options
author | Shiz <hi@shiz.me> | 2017-04-10 08:47:22 +0200 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-04-24 22:42:29 +0000 |
commit | 5ba27c90007b2441f1fe35365c753a5365f3a2de (patch) | |
tree | c6c325f10bf9f276af37747c69634ba2be760365 /src/apk_print.h | |
parent | 515f31eb528326c2275c08f7a0373e1529b4fb3e (diff) | |
download | apk-tools-5ba27c90007b2441f1fe35365c753a5365f3a2de.tar.gz apk-tools-5ba27c90007b2441f1fe35365c753a5365f3a2de.tar.bz2 apk-tools-5ba27c90007b2441f1fe35365c753a5365f3a2de.tar.xz apk-tools-5ba27c90007b2441f1fe35365c753a5365f3a2de.zip |
print: print warnings and errors to stderr
Diffstat (limited to 'src/apk_print.h')
-rw-r--r-- | src/apk_print.h | 5 |
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); |