summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-16 09:33:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-16 09:33:55 +0000
commit50daa05773a66fc94fd459011f51544b8b6e0517 (patch)
treedc9e320fd4e46923f5d8951a7e652d56e8dcec33 /src/apk_defines.h
parentaf6f329fc72bd93d2ac1a07ce6b23e510cf82ea8 (diff)
downloadapk-tools-50daa05773a66fc94fd459011f51544b8b6e0517.tar.gz
apk-tools-50daa05773a66fc94fd459011f51544b8b6e0517.tar.bz2
apk-tools-50daa05773a66fc94fd459011f51544b8b6e0517.tar.xz
apk-tools-50daa05773a66fc94fd459011f51544b8b6e0517.zip
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.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, ...);