[pulseaudio-discuss] [PATCH 2/2] Log feature: optimize log data format before writing to target

2011-03-09 Thread Vincent Becker
Format data appended and prepended to the log message so that only one call to write is necessary Signed-off-by: Vincent Becker vincentx.bec...@intel.com --- src/pulsecore/log.c | 130 +++--- 1 files changed, 80 insertions(+), 50 deletions(-) diff

[pulseaudio-discuss] [PATCH 2/2] Log feature: optimize log data format before writing to target

2011-03-08 Thread Vincent Becker
Format data appended and prepended to the log message so that only one call to write is necessary Signed-off-by: Vincent Becker vincentx.bec...@intel.com --- src/pulsecore/log.c | 160 ++- 1 files changed, 95 insertions(+), 65 deletions(-) diff

Re: [pulseaudio-discuss] [PATCH 2/2] Log feature: optimize log data format before writing to target

2011-03-08 Thread Becker, VincentX
: optimize log data format before writing to target Note that this patch would need to be discussed on the list. Its main purpose is to avoid multiple calls to write, which can be the case when writing to a file descriptor. Indeed, the patch applied before did 2 calls to write as the metadata needed