diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-16 09:33:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-16 09:33:55 +0000 |
commit | 50daa05773a66fc94fd459011f51544b8b6e0517 (patch) | |
tree | dc9e320fd4e46923f5d8951a7e652d56e8dcec33 /src/apk_defines.h | |
parent | af6f329fc72bd93d2ac1a07ce6b23e510cf82ea8 (diff) | |
download | apk-tools-50daa05773a66fc94fd459011f51544b8b6e0517.tar.bz2 apk-tools-50daa05773a66fc94fd459011f51544b8b6e0517.tar.xz |
info: only show package desc when --verbose
also introduce apk_verbosity. --quiet reduce verbosity and --verbose
increases it.
Default verbosity is 1.
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r-- | src/apk_defines.h | 6 |
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, ...); |