commit | a2c9911ace8537e0a350daf8d981170a001b6c7a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Aug 21 13:17:37 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Aug 21 14:32:09 2019 +0200 |
tree | 7b51998ea07c4cf615959b3c51898c7a9f67a7b1 | |
parent | a512b02f67a30ab5519d04f8c8b1263415321c85 [diff] |
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.