From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A262C433EF for ; Fri, 5 Nov 2021 22:31:29 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A4A37611CE for ; Fri, 5 Nov 2021 22:31:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A4A37611CE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8328A83742; Fri, 5 Nov 2021 23:31:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="mvllobRL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7DCFB83246; Fri, 5 Nov 2021 23:31:25 +0100 (CET) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0526983742 for ; Fri, 5 Nov 2021 23:31:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: by mail.kernel.org (Postfix) with ESMTPSA id 772216120D; Fri, 5 Nov 2021 22:31:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636151480; bh=bWWt7njBvvWsR11puQS87/ugVE1kfyT6P7mU9K6i5Xw=; h=From:To:Cc:Subject:Date:From; b=mvllobRLDcDkGOZNZ30ob8MNLToO2Qe37Wqw8jGTkD/V11XPFs9OR/p4QcF2nZMDt ub/ptdBT81cLzRRFfdaixKFWtImsfFNz/xrctHgWp43BSF8pHM5n08nX/yU8MOiyJM 35GgaXfYBmTCANvbI/2w6lz0B0Lw8AG8z0H4RnA3LoRVZu4/FhWsIpajF38J6w9ADU NrBsAbTRx9EbrTupr5Qb4tFLknbrv8TfsxQ9NIFzHIYT7JxU9rRnfACNv2dlmC+W1U 81yXA7Sq/J/Ty9ry3hzFeNFq6Ha2a3moUI2biRbcSlmkI5knAyH/YysuSyVYTNBuLk shm6kHpwA1Nrg== Received: by pali.im (Postfix) id 7C30B638; Fri, 5 Nov 2021 23:31:18 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese Cc: =?UTF-8?q?Marek=20Beh=C3=BAn?= , u-boot@lists.denx.de Subject: [PATCH] tools: kwboot: Always print kwboot version Date: Fri, 5 Nov 2021 23:30:42 +0100 Message-Id: <20211105223042.17104-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean It is useful to see kwboot version in the boot log output for debugging purposes. Signed-off-by: Pali Rohár --- tools/kwboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index 4e4d544efd3f..d22e6ea96a5c 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -1640,7 +1640,6 @@ err: static void kwboot_usage(FILE *stream, char *progname) { - fprintf(stream, "kwboot version %s\n", PLAIN_VERSION); fprintf(stream, "Usage: %s [OPTIONS] [-b | -D ] [-B ] \n", progname); @@ -1685,6 +1684,8 @@ main(int argc, char **argv) after_img_rsv = KWBOOT_XM_BLKSZ; baudrate = 115200; + printf("kwboot version %s\n", PLAIN_VERSION); + kwboot_verbose = isatty(STDOUT_FILENO); do { -- 2.20.1