1 ////////////////////////////////////////////////////////////////////////////////////
6 // Debug functions for application
10 // COMPANY NAME: Samsung Research Center in Moscow
11 // DEPT NAME: Advanced Software Group
12 // CREATED: 2008.02.15
14 // REVISION DATE: 2008.12.02
16 ////////////////////////////////////////////////////////////////////////////////////
18 #if !defined(__DEBUG_H__)
21 #include <linux/kernel.h>
22 #include <linux/string.h> // strrchr
27 #define DPRINTF(format, args...) do { \
29 char *n = strrchr(f, '/'); \
30 printk("DRIVER[%s:%u:%s] DEBUG: " format "\n" , (n) ? n+1 : f, __LINE__, __FUNCTION__, ##args); \
33 #define DPRINTF(format, args...)
36 #define EPRINTF(format, args...) do { \
38 char *n = strrchr(f, '/'); \
39 printk("DRIVER[%s:%u:%s] ERROR: " format "\n" , (n) ? n+1 : f, __LINE__, __FUNCTION__, ##args); \
43 #endif /* !defined(__DEBUG_H__) */