aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/debug.c')
-rw-r--r--tools/perf/util/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c
index e8ca98fe0bd4..0905600c3851 100644
--- a/tools/perf/util/debug.c
+++ b/tools/perf/util/debug.c
@@ -9,16 +9,17 @@
9#include "color.h" 9#include "color.h"
10#include "event.h" 10#include "event.h"
11#include "debug.h" 11#include "debug.h"
12#include "util.h"
12 13
13int verbose = 0; 14int verbose = 0;
14int dump_trace = 0; 15int dump_trace = 0;
15 16
16int eprintf(const char *fmt, ...) 17int eprintf(int level, const char *fmt, ...)
17{ 18{
18 va_list args; 19 va_list args;
19 int ret = 0; 20 int ret = 0;
20 21
21 if (verbose) { 22 if (verbose >= level) {
22 va_start(args, fmt); 23 va_start(args, fmt);
23 ret = vfprintf(stderr, fmt, args); 24 ret = vfprintf(stderr, fmt, args);
24 va_end(args); 25 va_end(args);