text.pretty: create an event string instead of using fprintf()/fputs()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 26 May 2017 20:14:49 +0000 (16:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 20:58:11 +0000 (16:58 -0400)
commit5280f7427ab8be3f2c229ce001e987d8a292e1ea
tree366c7abefce6ef549cebe2af1acd0cc70cfa3646
parent08b6e8e8fc5a349c0d0295b2bd33d374218ed551
text.pretty: create an event string instead of using fprintf()/fputs()

Because the component calls library functions which can log between its
calls to fprintf() or fputs(), the output when logging is enabled is the
output of the component interlaced with library logging statements.

Instead of printing directly to the file stream, append to a component
GString and fwrite() this content at the end.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/text/pretty/pretty.c
plugins/text/pretty/pretty.h
plugins/text/pretty/print.c
This page took 0.024269 seconds and 4 git commands to generate.