Skip to contentSkip to conversation

LVM2 ./WHATS_NEW tools/lvmcmdline.c

PATCH [email protected] 1 participant 1 message Sep 21, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: meyering at sourceware.org 2007-09-21 18:06:56

Modified files:
. : WHATS_NEW
tools : lvmcmdline.c

Log message:
Print --help output to stdout, not stderr.

* tools/lvmcmdline.c (_usage): Use log_print, not log_error.

Author: Jim Meyering <[email protected]>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.712&r2=1.713
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvmcmdline.c.diff?cvsroot=lvm2&r1=1.50&r2=1.51

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.29 -
 ==================================
+  All tools: print --help output to stdout, not stderr.
   After a diagnostic, suggest --help, rather than printing all --help output.
   Add %PVS extents option to lvresize, lvextend, and lvcreate.
   Moved the obsolete test subdirectory to old-tests.
tools/lvmcmdline.c +1 -1
@@ -478,7 +478,7 @@
 	if (!com)
 		return;
 
-	log_error("%s: %s\n\n%s", com->name, com->desc, com->usage);
+	log_print("%s: %s\n\n%s", com->name, com->desc, com->usage);
 }
 
 /*