Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix verbosity.

  • Loading branch information...
commit c8b9a6d4b73a42b5b5b25ea80abe1bbdf06019a2 1 parent 54ec2e2
@davidstrauss davidstrauss authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/log.c
View
16 src/log.c
@@ -27,15 +27,15 @@ void log_set_minimum_verbosity(int verbosity) {
}
int log_print(int verbosity, const char *format, ...) {
- int r;
- va_list ap;
+ int r;
+ va_list ap;
- if (verbosity < minimum_verbosity)
- return 0;
+ if (verbosity >= minimum_verbosity)
+ return 0;
- va_start(ap, format);
- r = sd_journal_printv(verbosity, format, ap);
- va_end(ap);
+ va_start(ap, format);
+ r = sd_journal_printv(verbosity, format, ap);
+ va_end(ap);
- return r;
+ return r;
}
Please sign in to comment.
Something went wrong with that request. Please try again.