HomeClusterLabs Projects

High: Core: Fix logging of xml with libqb

Description

High: Core: Fix logging of xml with libqb

libqb matches callsites on file and line number /AND/ reuses the format strings.

This meant that

qb_log_from_external_source(__FUNCTION__, __FILE__, "%s %s",

LOG_INFO, 100, 0, "hi", "there");

qb_log_from_external_source(__FUNCTION__, __FILE__, "%s-%s",

LOG_INFO, 100, 0, "hi", "there");

would both print "hi there".

Details

Provenance
Andrew Beekhof <andrew@beekhof.net>Authored on Jan 9 2012, 7:38 PM
Parents
rPb5f3ccc941b2: Medium: Core: strchrnul() does not exist on Darwin
Branches
Unknown
Tags
Unknown

Event Timeline