7 extern const char red_color[];
8 extern const char green_color[];
9 extern const char normal_color[];
11 #define pr_info(fmt, arg...) \
13 char indent[16] = { " " }; \
14 indent[get_parent_count()] = 0; \
15 fprintf(stderr, "%s%s[%d.%5d] %s:%d %s" \
16 fmt, indent, green_color, get_process_count(), \
18 __FILE__, __LINE__, normal_color, ##arg); \
22 #define pr_err(fmt, arg...) \
24 char indent[16] = { " " }; \
25 indent[get_parent_count()] = 0; \
26 fprintf(stderr, "%s%s[%d.%5d] %s:%d Error %s" \
27 fmt, indent, red_color, get_process_count(), \
29 __FILE__, __LINE__, normal_color, ##arg); \