]> sourceware.org Git - lvm2.git/commit
lvm2app: Reset buffer after retrieving error message
authorTony Asleson <tasleson@redhat.com>
Thu, 26 Sep 2013 17:19:18 +0000 (12:19 -0500)
committerTony Asleson <tasleson@redhat.com>
Tue, 19 Nov 2013 20:40:42 +0000 (14:40 -0600)
commitfe5b538c14c47e2e206d13c17f0225e39470d720
treea4a62c98557eb970d6d9d2b66da4db67b9f4c19c
parent0c7a7d4d8433965313120254b68199525871b6a6
lvm2app: Reset buffer after retrieving error message

The error buffer will stack error messages which is fine.  However,
once you retrieve the error messages it doesn't make sense to keep
appending for each additional error message when running in the
context of a library call.

This patch clears and resets the buffer after the user retrieves
the error message.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
lib/log/log.c
lib/log/lvm-logging.h
liblvm/lvm_base.c
python/liblvm.c
This page took 0.043087 seconds and 5 git commands to generate.