summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r--src/apk_defines.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h
index 5503167..865ec5f 100644
--- a/src/apk_defines.h
+++ b/src/apk_defines.h
@@ -50,11 +50,11 @@ extern csum_t bad_checksum;
#define csum_valid(buf) memcmp(buf, bad_checksum, sizeof(csum_t))
#endif
-extern int apk_cwd_fd, apk_quiet, apk_progress;
+extern int apk_cwd_fd, apk_verbosity, apk_progress;
#define apk_error(args...) apk_log("ERROR: ", args);
-#define apk_warning(args...) if (!apk_quiet) { apk_log("WARNING: ", args); }
-#define apk_message(args...) if (!apk_quiet) { apk_log(NULL, args); }
+#define apk_warning(args...) if (apk_verbosity > 0) { apk_log("WARNING: ", args); }
+#define apk_message(args...) if (apk_verbosity > 0) { apk_log(NULL, args); }
void apk_log(const char *prefix, const char *format, ...);