On Thu, Oct 24, 2019 at 03:56:25PM +0200, Peter Krempa wrote:
Rather than setting usage error truncate the indentation level.
Having
the output string misformated is way more useful to figure out where the
error lies rather than reporting an error after a giant formatter
function.
In testBufAutoIndent we now validate that the indentation is truncated
and testBufAddBuffer2 is removed since it became bogus.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/util/virbuffer.c | 8 ++++----
tests/virbuftest.c | 35 ++++-------------------------------
2 files changed, 8 insertions(+), 35 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano