From patchwork Wed Jul 8 00:11:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 29551 Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 9A0E0B708B for ; Wed, 8 Jul 2009 10:19:55 +1000 (EST) Received: by ozlabs.org (Postfix) id 445F9DE3FC; Wed, 8 Jul 2009 10:19:16 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 423B6DE3FB for ; Wed, 8 Jul 2009 10:19:16 +1000 (EST) X-Original-To: cbe-oss-dev@ozlabs.org Delivered-To: cbe-oss-dev@ozlabs.org Received: from hera.kernel.org (hera.kernel.org [140.211.167.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 70FB6DDF93; Wed, 8 Jul 2009 10:18:11 +1000 (EST) Received: from hera.kernel.org (IDENT:U2FsdGVkX194M8RLTFLm6ntWhiyiaxoGoGpb69OghxA@localhost [127.0.0.1]) by hera.kernel.org (8.14.2/8.14.2) with ESMTP id n680I39h026350 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Jul 2009 00:18:03 GMT Received: (from geoff@localhost) by hera.kernel.org (8.14.2/8.13.1/Submit) id n680I2Z1026348; Wed, 8 Jul 2009 00:18:02 GMT Message-Id: <20090708001135.362620004@am.sony.com> User-Agent: quilt/0.47-1 Date: Tue, 07 Jul 2009 17:11:40 -0700 From: Geoff Levand To: Jeremy Kerr In-Reply-To: <20090708001134.934244536@am.sony.com> References: <20090708001134.934244536@am.sony.com> Content-Disposition: inline; filename=wget-quiet.diff X-Virus-Scanned: ClamAV 0.93.3/9541/Tue Jul 7 17:31:53 2009 on hera.kernel.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hera.kernel.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Wed, 08 Jul 2009 00:18:03 +0000 (UTC) Cc: cbe-oss-dev@ozlabs.org Subject: [Cbe-oss-dev] [patch 06/31] petitboot: Quiet wget X-BeenThere: cbe-oss-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Discussion about Open Source Software for the Cell Broadband Engine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Add the --quiet option to wget for non-debug builds. Signed-off-by: Geoff Levand --- ui/common/loader.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) --- a/ui/common/loader.c +++ b/ui/common/loader.c @@ -227,7 +227,7 @@ enum wget_flags { static char *pb_load_wget(void *ctx, struct pb_url *url, enum wget_flags flags) { int result; - const char *argv[6]; + const char *argv[7]; const char **p; char *local; @@ -238,12 +238,15 @@ static char *pb_load_wget(void *ctx, str p = argv; *p++ = pb_system_apps.wget; /* 1 */ - *p++ = "-O"; /* 2 */ - *p++ = local; /* 3 */ - *p++ = url->full; /* 4 */ +#if !defined(DEBUG) + *p++ = "--quiet"; /* 2 */ +#endif + *p++ = "-O"; /* 3 */ + *p++ = local; /* 4 */ + *p++ = url->full; /* 5 */ if (flags & wget_no_check_certificate) - *p++ = "--no-check-certificate"; /* 5 */ - *p++ = NULL; /* 6 */ + *p++ = "--no-check-certificate"; /* 6 */ + *p++ = NULL; /* 7 */ result = pb_run_cmd(argv);