Re: [PATCH 2/3] Implement simple color output

2017-04-04 Thread Eugene Syromiatnikov
On Fri, Mar 31, 2017 at 07:20:52PM +0800, JingPiao Chen wrote: [...] > diff --git a/color.h b/color.h > new file mode 100644 > index 000..8e58c90 > --- /dev/null > +++ b/color.h > @@ -0,0 +1,29 @@ > +#ifndef STRACE_COLOR_H > +#define STRACE_COLOR_H > + > +#define C_CLEAR "\033[0m"

[PATCH 2/3] Implement simple color output

2017-03-31 Thread JingPiao Chen
Color output system call name, return value, error message, fd, address and prefix pid. * color.h: New file. * Makefile.am (strace_SOURCES): Add color.h. * defs.h (color_attr): New enum. (color_tprintf, color_tprints): New prototype. * syscall.c (trace_syscall_entering): Color output system call n