[Devel] [PATCH 04/12][user-cr] Add app_restart_args->verbose
Sukadev Bhattiprolu
sukadev at linux.vnet.ibm.com
Fri Mar 5 14:37:46 PST 2010
From: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
Date: Thu, 4 Mar 2010 17:53:27 -0800
Subject: [PATCH 04/12][user-cr] Add app_restart_args->verbose
Make 'verbose' a field in struct app_restart_args so other callers of
app_restart() can also control the verbose output of app_restart().
Signed-off-by: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
---
restart.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/restart.c b/restart.c
index 87fff1e..8513042 100644
--- a/restart.c
+++ b/restart.c
@@ -388,6 +388,7 @@ struct app_restart_args {
int klogfd;
long warn;
int debug;
+ int verbose;
long fail;
int keep_lsm;
};
@@ -515,7 +516,7 @@ static void parse_args(struct app_restart_args *args, int argc, char *argv[])
case 'h':
usage(usage_str);
case 'v':
- global_verbose = 1;
+ global_verbose = args->verbose = 1;
break;
case 5: /* --inspect */
args->inspect = 1;
@@ -820,6 +821,7 @@ int app_restart(struct app_restart_args *args)
global_send_sigint = args->send_sigint;
global_debug = args->debug;
+ global_verbose = args->verbose;
/* input file descriptor (default: stdin) */
if (args->infd >= 0) {
--
1.6.0.4
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list