• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef VIDDEC_DEBUG_H
2 #define VIDDEC_DEBUG_H
3 
4 #ifndef VBP
5 
6 #ifdef HOST_ONLY
7     #include <stdio.h>
8     #include <osal.h>
9     #define DEB                        OS_PRINT
10     #define FWTRACE                    OS_PRINT("trace:%s %d\n", __FUNCTION__, __LINE__ );
11 //  #define DEB(format, args...)
12 //  #define FWTRACE
13     #define DEB_FNAME(format, args...) OS_PRINT("%s:  %s[%d]:: " format, __FILE__, __FUNCTION__ , __LINE__ ,  ## args )
14     #define CDEB(a, format, args...)   if(a != 0) {DEB(format, ##args);}
15 #else
16     #define DEB(format, args...)
17     #define FWTRACE
18     #define CDEB(a, format, args...)
19     #define DEB_FNAME(format, args...)
20 #endif
21 
22 #else  // VBP is defined
23 
24 #define DEB(format, args...)
25 #define FWTRACE
26 #define CDEB(a, format, args...)
27 #define DEB_FNAME(format, args...)
28 
29 #endif // end of VBP
30 
31 #endif
32