summaryrefslogtreecommitdiff
path: root/src/pacman/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/log.c')
-rw-r--r--src/pacman/log.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c
index b5ab2400..6ff488a9 100644
--- a/src/pacman/log.c
+++ b/src/pacman/log.c
@@ -28,10 +28,12 @@
/* pacman */
#include "log.h"
+#include "list.h"
+#include "conf.h"
#define LOG_STR_LEN 256
-extern unsigned short pmo_verbose;
+extern pmconfig_t *config;
static int neednl; /* for cleaner message output */
@@ -101,7 +103,7 @@ void vprint(char *fmt, ...)
{
va_list args;
- if(pmo_verbose > 1) {
+ if(config->verbose > 1) {
if(neednl == 1) {
fprintf(stdout, "\n");
neednl = 0;