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[%5d] %s:%d %s" \
16 fmt, indent, green_color, getpid(), \
17 __FILE__, __LINE__, normal_color, ##arg); \
21 #define pr_err(fmt, arg...) \
23 char indent[16] = { ' ' }; \
24 indent[get_parent_count()] = 0; \
25 fprintf(stderr, "%s%s[%5d] %s:%d Error %s" \
26 fmt, indent, red_color, getpid(), \
27 __FILE__, __LINE__, normal_color, ##arg); \