[lvm-devel] [PATCH 3/3] lvm2app: Set suppress to 1
Tony Asleson
tasleson at redhat.com
Tue Apr 2 21:16:33 UTC 2013
Removes printing to stdout/stderr etc.
Signed-off-by: Tony Asleson <tasleson at redhat.com>
---
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
More information about the lvm-devel
mailing list