do { \
if ((atomic_read(&DEBUG_LEVEL) & DEBUG) && \
((atomic_read(®ION)) & (region))) { \
- printk("DBG [%s: %d]", __FUNCTION__, __LINE__); \
+ printk("DBG [%s: %d]", __func__, __LINE__); \
printk(__VA_ARGS__); \
} \
} while (0)
do { \
if ((atomic_read(&DEBUG_LEVEL) & INFO) && \
((atomic_read(®ION)) & (region))) { \
- printk("INFO [%s]", __FUNCTION__); \
+ printk("INFO [%s]", __func__); \
printk(__VA_ARGS__); \
} \
} while (0)
do { \
if ((atomic_read(&DEBUG_LEVEL) & WRN) && \
((atomic_read(®ION)) & (region))) { \
- printk("WRN [%s: %d]", __FUNCTION__, __LINE__); \
+ printk("WRN [%s: %d]", __func__, __LINE__); \
printk(__VA_ARGS__); \
} \
} while (0)
#define PRINT_ER(...) \
do { \
if ((atomic_read(&DEBUG_LEVEL) & ERR)) { \
- printk("ERR [%s: %d]", __FUNCTION__, __LINE__); \
+ printk("ERR [%s: %d]", __func__, __LINE__); \
printk(__VA_ARGS__); \
} \
} while (0)
#define PRINT_D(region, ...) \
do { \
if (DEBUG == 1 && ((REGION)&(region))) { \
- printk("DBG [%s: %d]", __FUNCTION__, __LINE__); \
+ printk("DBG [%s: %d]", __func__, __LINE__); \
printk(__VA_ARGS__); \
} \
} while (0)
#define PRINT_INFO(region, ...) \
do { \
if (INFO == 1 && ((REGION)&(region))) { \
- printk("INFO [%s]", __FUNCTION__); \
+ printk("INFO [%s]", __func__); \
printk(__VA_ARGS__); \
} \
} while (0)
#define PRINT_WRN(region, ...) \
do { \
if (WRN == 1 && ((REGION)&(region))) { \
- printk("WRN [%s: %d]", __FUNCTION__, __LINE__); \
+ printk("WRN [%s: %d]", __func__, __LINE__); \
printk(__VA_ARGS__); \
} \
} while (0)
#define PRINT_ER(...) \
do { \
- printk("ERR [%s: %d]", __FUNCTION__, __LINE__); \
+ printk("ERR [%s: %d]", __func__, __LINE__); \
printk(__VA_ARGS__); \
} while (0)
#endif