From: Tony Asleson Date: Tue, 2 Apr 2013 16:16:33 -0500 Subject: [PATCH 3/3] lvm2app: Set suppress to 1 In-Reply-To: <1364937393-12997-1-git-send-email-tasleson@redhat.com> References: <1364937393-12997-1-git-send-email-tasleson@redhat.com> Message-ID: <1364937393-12997-3-git-send-email-tasleson@redhat.com> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Removes printing to stdout/stderr etc. Signed-off-by: Tony Asleson --- liblvm/lvm_base.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/liblvm/lvm_base.c b/liblvm/lvm_base.c index 53be709..67ed023 100644 --- a/liblvm/lvm_base.c +++ b/liblvm/lvm_base.c @@ -66,6 +66,12 @@ lvm_t lvm_init(const char *system_dir) */ cmd->cmd_line = "liblvm"; + /* + * Turn off writing to stderr etc., not sure if there is a better way + * to do this? + */ + log_suppress(1); + return (lvm_t) cmd; } -- 1.8.1.4