debug.c (51b743fe87d7fb3dba7a2ff4a1fe23bb65dc2245) | debug.c (0985a94891c73740dea1e2697f9d598a4a7810ab) |
---|---|
1/* For general debugging purposes */ 2 3#include "../perf.h" 4 5#include <string.h> 6#include <stdarg.h> 7#include <stdio.h> 8 --- 9 unchanged lines hidden (view full) --- 18 19int eprintf(int level, const char *fmt, ...) 20{ 21 va_list args; 22 int ret = 0; 23 24 if (verbose >= level) { 25 va_start(args, fmt); | 1/* For general debugging purposes */ 2 3#include "../perf.h" 4 5#include <string.h> 6#include <stdarg.h> 7#include <stdio.h> 8 --- 9 unchanged lines hidden (view full) --- 18 19int eprintf(int level, const char *fmt, ...) 20{ 21 va_list args; 22 int ret = 0; 23 24 if (verbose >= level) { 25 va_start(args, fmt); |
26 if (use_browser > 0) | 26 if (use_browser == 1) |
27 ret = ui_helpline__show_help(fmt, args); | 27 ret = ui_helpline__show_help(fmt, args); |
28 else if (use_browser == 2) 29 ret = perf_gtk__show_helpline(fmt, args); |
|
28 else 29 ret = vfprintf(stderr, fmt, args); 30 va_end(args); 31 } 32 33 return ret; 34} 35 --- 71 unchanged lines hidden --- | 30 else 31 ret = vfprintf(stderr, fmt, args); 32 va_end(args); 33 } 34 35 return ret; 36} 37 --- 71 unchanged lines hidden --- |