From patchwork Tue Jun 3 22:00:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Betker X-Patchwork-Id: 355718 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 7B12F1400A0 for ; Wed, 4 Jun 2014 16:16:26 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2995EA7431; Wed, 4 Jun 2014 08:16:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sEtNiy1DJuKu; Wed, 4 Jun 2014 08:16:23 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DFB0BA7432; Wed, 4 Jun 2014 08:16:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4E5BF4B939 for ; Wed, 4 Jun 2014 00:23:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ggbXiFHbBAD1 for ; Wed, 4 Jun 2014 00:23:32 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mout3.freenet.de (mout3.freenet.de [195.4.92.93]) by theia.denx.de (Postfix) with ESMTPS id 102394B93A for ; Wed, 4 Jun 2014 00:23:31 +0200 (CEST) Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout3.freenet.de with esmtpa (ID thomas.betker@freenet.de) (port 25) (Exim 4.82 #1) id 1Wrwn7-0003kf-R7; Wed, 04 Jun 2014 00:02:45 +0200 Received: from localhost ([::1]:47752 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID thomas.betker@freenet.de) (Exim 4.82 #1) id 1Wrwn7-0002YC-LC; Wed, 04 Jun 2014 00:02:45 +0200 Received: from mx4.freenet.de ([195.4.92.14]:36652) by mjail0.freenet.de with esmtpa (ID thomas.betker@freenet.de) (Exim 4.82 #1) id 1Wrwl1-000153-A4; Wed, 04 Jun 2014 00:00:35 +0200 Received: from dslb-084-057-015-186.pools.arcor-ip.net ([84.57.15.186]:38142 helo=linux-thh9.site) by mx4.freenet.de with esmtpsa (ID thomas.betker@freenet.de) (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (port 587) (Exim 4.82 #1) id 1Wrwl0-0001Je-Jo; Wed, 04 Jun 2014 00:00:34 +0200 From: thomas.betker@freenet.de To: u-boot@lists.denx.de Date: Wed, 4 Jun 2014 00:00:17 +0200 Message-Id: <1401832817-4152-4-git-send-email-thomas.betker@freenet.de> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1401832817-4152-1-git-send-email-thomas.betker@freenet.de> References: <1401832817-4152-1-git-send-email-thomas.betker@freenet.de> X-Originated-At: 84.57.15.186!38142 X-Mailman-Approved-At: Wed, 04 Jun 2014 08:16:06 +0200 Subject: [U-Boot] [PATCH 3/3] Use run_command_repeatable() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Thomas Betker Replace run_command() by run_command_repeatable() in places which depend on the return code to indicate repeatability. Signed-off-by: Thomas Betker --- common/cli_simple.c | 2 +- common/cmd_bedbug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cli_simple.c b/common/cli_simple.c index 413c2eb..222e292 100644 --- a/common/cli_simple.c +++ b/common/cli_simple.c @@ -295,7 +295,7 @@ void cli_simple_loop(void) if (len == -1) puts("\n"); else - rc = run_command(lastcommand, flag); + rc = run_command_repeatable(lastcommand, flag); if (rc <= 0) { /* invalid command or not repeatable, forget it */ diff --git a/common/cmd_bedbug.c b/common/cmd_bedbug.c index bdcf712..57a8a3f 100644 --- a/common/cmd_bedbug.c +++ b/common/cmd_bedbug.c @@ -238,7 +238,7 @@ void bedbug_main_loop (unsigned long addr, struct pt_regs *regs) if (len == -1) printf ("\n"); else - rc = run_command(lastcommand, flag); + rc = run_command_repeatable(lastcommand, flag); if (rc <= 0) { /* invalid command or not repeatable, forget it */