public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/tools lvm.c lvmcmdline.c
@ 2008-06-03 17:48 agk
0 siblings, 0 replies; only message in thread
From: agk @ 2008-06-03 17:48 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2008-06-03 17:48:13
Modified files:
tools : lvm.c lvmcmdline.c
Log message:
suppress warning on silent failure with ECMD_PROCESSED
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvm.c.diff?cvsroot=lvm2&r1=1.106&r2=1.107
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvmcmdline.c.diff?cvsroot=lvm2&r1=1.64&r2=1.65
--- LVM2/tools/lvm.c 2008/05/30 15:27:44 1.106
+++ LVM2/tools/lvm.c 2008/06/03 17:48:13 1.107
@@ -236,7 +236,7 @@
log_error("No such command '%s'. Try 'help'.",
argv[0]);
- if (ret && !error_message_produced()) {
+ if ((ret != ECMD_PROCESSED) && !error_message_produced()) {
log_debug("Internal error: Failed command did not use log_error");
log_error("Command failed with status code %d.", ret);
}
--- LVM2/tools/lvmcmdline.c 2008/05/30 15:27:44 1.64
+++ LVM2/tools/lvmcmdline.c 2008/06/03 17:48:13 1.65
@@ -1099,7 +1099,7 @@
if (!strcmp(argv[0], "quit") || !strcmp(argv[0], "exit"))
break;
ret = lvm_run_command(cmd, argc, argv);
- if (ret) {
+ if (ret != ECMD_PROCESSED) {
if (!error_message_produced()) {
log_debug("Internal error: Failed command did not use log_error");
log_error("Command failed with status code %d.", ret);
@@ -1227,7 +1227,7 @@
if (ret == ENO_SUCH_CMD)
log_error("No such command. Try 'help'.");
- if (ret && !error_message_produced()) {
+ if ((ret != ECMD_PROCESSED) && !error_message_produced()) {
log_debug("Internal error: Failed command did not use log_error");
log_error("Command failed with status code %d.", ret);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-03 17:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-03 17:48 LVM2/tools lvm.c lvmcmdline.c agk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).