perf ui: Rename ui__warning_paranoid to ui__error_paranoid
[linux-2.6/btrfs-unstable.git] / tools / perf / util / debug.h
blob16cc75227d2b1cb85ec9ae8e72f1c1f07e5ff112
1 /* For debugging general purposes */
2 #ifndef __PERF_DEBUG_H
3 #define __PERF_DEBUG_H
5 #include <stdbool.h>
6 #include "event.h"
8 extern int verbose;
9 extern bool quiet, dump_trace;
11 int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
12 void trace_event(union perf_event *event);
14 struct ui_progress;
16 #ifdef NO_NEWT_SUPPORT
17 static inline int ui_helpline__show_help(const char *format __used, va_list ap __used)
19 return 0;
22 static inline void ui_progress__update(u64 curr __used, u64 total __used,
23 const char *title __used) {}
25 #define ui__error(format, arg...) ui__warning(format, ##arg)
26 #else
27 extern char ui_helpline__last_msg[];
28 int ui_helpline__show_help(const char *format, va_list ap);
29 #include "ui/progress.h"
30 void ui__error(const char *format, ...) __attribute__((format(printf, 1, 2)));
31 #endif
33 void ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
34 void ui__error_paranoid(void);
36 #endif /* __PERF_DEBUG_H */