From 50daa05773a66fc94fd459011f51544b8b6e0517 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 16 Jan 2009 09:33:55 +0000 Subject: info: only show package desc when --verbose also introduce apk_verbosity. --quiet reduce verbosity and --verbose increases it. Default verbosity is 1. --- src/apk_defines.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/apk_defines.h') 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, ...); -- cgit v1.2.3