]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add append_prefixed_str()
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Aug 2019 11:17:37 +0000 (13:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Aug 2019 12:32:09 +0000 (14:32 +0200)
commita2c9911ace8537e0a350daf8d981170a001b6c7a
tree7b51998ea07c4cf615959b3c51898c7a9f67a7b1
parenta512b02f67a30ab5519d04f8c8b1263415321c85
MINOR: tools: add append_prefixed_str()

This is somewhat related to indent_msg() except that this one places a
known prefix at the beginning of each line, allows to replace the EOL
character, and not to insert a prefix on the first line if not desired.
It works with a normal output buffer/chunk so it doesn't need to allocate
anything nor to modify the input string. It is suitable for use in multi-
line backtraces.
include/common/standard.h
src/standard.c