From patchwork Tue Nov 25 21:59:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suriyan Ramasami X-Patchwork-Id: 414909 X-Patchwork-Delegate: sr@denx.de 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 28DF61401AC for ; Wed, 26 Nov 2014 08:59:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A57424B668; Tue, 25 Nov 2014 22:59:35 +0100 (CET) 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 kaluzscbzvIH; Tue, 25 Nov 2014 22:59:35 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1AA3F4B664; Tue, 25 Nov 2014 22:59:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AEDBD4B664 for ; Tue, 25 Nov 2014 22:59:31 +0100 (CET) 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 HK-v5k4ARY9m for ; Tue, 25 Nov 2014 22:59:31 +0100 (CET) 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 mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by theia.denx.de (Postfix) with ESMTPS id 1F6944B663 for ; Tue, 25 Nov 2014 22:59:26 +0100 (CET) Received: by mail-pd0-f181.google.com with SMTP id z10so1382922pdj.40 for ; Tue, 25 Nov 2014 13:59:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=o5E1LqN3D0UfOM0Ez/tQyRPar6iXMNooO9GXLpmO9p4=; b=Lg1MYxv5ywjhmJWbbabQ0r8V24hNwUjZIOBrvpwCJiCh8y0ycdGabBSQok778yJQm3 XoWcZb65sJGdHAMePvW+b0FlCpWkZFfTjeuVjl3Dl5Mmc+Qxpv6JyJmARCjUjW0WdrZY GgDGd8vopZN8HQJbzdNJqm84wKmnJ1M9b2rCSuoiqF2wZSxvzr7pVnjsZXcj/E8UiDzY J4E11pb61qMyvR2eXbYIsOjgvY4K2Wpbqd0y1CmMsNXf1rvzqo8NwSqeSPB6jTFr7ONY GA5VMxH0dbg60Uvc00yJ94394GVIeNequvRIvC2sSj/Z0v6X2AZep24LeAw6gdqvb/t5 pzug== X-Received: by 10.68.65.35 with SMTP id u3mr33042925pbs.9.1416952764079; Tue, 25 Nov 2014 13:59:24 -0800 (PST) Received: from Stealth.localdomain ([73.170.223.86]) by mx.google.com with ESMTPSA id ye3sm2332825pbb.93.2014.11.25.13.59.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Nov 2014 13:59:23 -0800 (PST) From: Suriyan Ramasami To: Luka Perkov Date: Tue, 25 Nov 2014 13:59:19 -0800 Message-Id: <1416952759-15204-1-git-send-email-suriyan.r@gmail.com> X-Mailer: git-send-email 1.8.3.1 Cc: Stefan Roese , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v1] tools/kwboot: Allow just -t to function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 When kwboot is invoked with -t the code implicitly assumes that one of -b (boot message) or -d (debug message) with an image file is specified. This is not necessarily true. This allows kwboot -t to function. Signed-off-by: Suriyan Ramasami Acked-by: Stefan Roese --- Changes in v1: - First try tools/kwboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index 1368b4c..449564e 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -785,7 +785,7 @@ main(int argc, char **argv) perror("debugmsg"); goto out; } - } else { + } else if (bootmsg) { rc = kwboot_bootmsg(tty, bootmsg); if (rc) { perror("bootmsg");