xref: /haiku/src/add-ons/kernel/drivers/video/usb_vision/tracing.h (revision 89d652d5e0defd9d095c778709cef82f5f10c357)
1 /*
2  * Copyright (c) 2003 by Siarzhuk Zharski <imker@gmx.li>
3  * Distributed under the terms of the MIT License.
4  *
5  */
6 
7 #ifndef _USBVISION_TRACING_H_
8 #define _USBVISION_TRACING_H_
9 
10 void load_setting(void);
11 void create_log(void);
12 void usbvision_trace(bool b_force, char *fmt, ...);
13 
14 #define TRACE_ALWAYS(x...) usbvision_trace(true, x);
15 #define TRACE(x...) usbvision_trace(false, x);
16 
17 extern bool b_log_funcalls;
18 #define TRACE_FUNCALLS(x...)\
19         { if(b_log_funcalls) usbvision_trace(false, x);}
20 
21 extern bool b_log_funcret;
22 #define TRACE_FUNCRET(x...)\
23         { if(b_log_funcret) usbvision_trace(false, x);}
24 
25 extern bool b_log_funcres;
26 #define TRACE_FUNCRES(func, param)\
27         { if(b_log_funcres) func(param);}
28 
29 void trace_reginfo(xet_nt100x_reg *reginfo);
30 
31 #endif /*_USBVISION_TRACING_H_*/
32