do { \
char indent[16] = { " " }; \
indent[get_parent_count()] = 0; \
- fprintf(stderr, "%s%s[%d.%5d] %s:%d %s" \
- fmt, indent, green_color, get_sibling_count(), \
- getpid(), \
+ fprintf(stderr, "%s%s[%5d.%d] %s:%d %s" \
+ fmt, indent, green_color, \
+ getpid(), get_sibling_count(), \
__FILE__, __LINE__, normal_color, ##arg); \
} while (0)
do { \
char indent[16] = { " " }; \
indent[get_parent_count()] = 0; \
- fprintf(stderr, "%s%s[%d.%5d] %s:%d Error %s" \
- fmt, indent, red_color, get_sibling_count(), \
- getpid(), \
+ fprintf(stderr, "%s%s[%5d.%d] %s:%d Error %s" \
+ fmt, indent, red_color, \
+ getpid(), get_sibling_count(), \
__FILE__, __LINE__, normal_color, ##arg); \
} while (0)