Skip to contentSkip to conversation

master - lvm2app: Set suppress to 1

PATCH tasleson 1 participant 1 message Jul 2, 2013

lore
Share & tools
lore

tasleson

author
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=bfa265f1985818567b1eb6f7fae0ff3ba315b152
Commit:        bfa265f1985818567b1eb6f7fae0ff3ba315b152
Parent:        45a0f9e45be5999095c71382361f37f7c24d86d6
Author:        Tony Asleson <[email protected]>
AuthorDate:    Tue Apr 2 17:10:02 2013 -0400
Committer:     Tony Asleson <[email protected]>
CommitterDate: Tue Jul 2 14:24:34 2013 -0500

lvm2app: Set suppress to 1

Removes printing to stdout/stderr etc.

---
 liblvm/lvm_base.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
liblvm/lvm_base.c +6 -0
index 53be709..67ed023 100644
@@ -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;
 }