Message ID | 20200217100911.1435-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBTOMVHZAKGQEHQF6KVI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::337; helo=mail-wm1-x337.google.com; envelope-from=swupdate+bncbcxploxj6ikrbtomvhzakgqehqf6kvi@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=ZZ7RUo3W; dkim-atps=neutral Received: from mail-wm1-x337.google.com (mail-wm1-x337.google.com [IPv6:2a00:1450:4864:20::337]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Lfpr5mqHz9sP7 for <incoming@patchwork.ozlabs.org>; Mon, 17 Feb 2020 21:09:23 +1100 (AEDT) Received: by mail-wm1-x337.google.com with SMTP id 7sf6014222wmf.9 for <incoming@patchwork.ozlabs.org>; Mon, 17 Feb 2020 02:09:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581934157; cv=pass; d=google.com; s=arc-20160816; b=lSLVuEPJKN0wOouxk9JKnJheTGIinKeKn068iKNBUytlptH1YEJJkHlx4ZkqrOTMSB bZvq674RfNZNaco7ZMgBCmuK/oDKtJC2jvPQ74ID2Myb07wDTpSWhEZERq/WgL7WoBVz Tnb08pbCaWY78MQFXdu1HN0+y6Q3VDFlV5if/Af50N73Z8bZ+Tr2S4V3BZfujGFHnvCT qSgGOWgNeVjaxFM38WA/uZkHqDqrC8EhYXBu79/YhVe+Wa9KUqLg/+LbnYlLRF2cuJib nF7DeH7DsXZoub4EV8oHo3WPj1vPoBneSVN78SgHr4sL6rEmtG0Hn1zOSkF+8DbEmfnJ Zqgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=cEPHgusA1iNTVzAtVASj/dsVW3qwJykCsDOg4zK5Udc=; b=LCEYZVt5Wmkfnds/X2jXj6VKmdksNB7QWxsqsiSr4Ev3HqzkF37JFvE/MIpQoh1Qv9 3ctCr7XKGAvugJ4DqwPT9vrt3QzCqMkJVVcl5cB4HoQvmibeHoC1ZTJ1xXwCUcJkE8yD Bc6eARPSi+8IJOxK7W5hFSAnYLDOdrPHc1+3gswanA54poJ39u6ATXiNfStrJEWxhNjh ssYSxfcRMmhziuMKZsrxN0Db8TCOgSQvWJ+DBdXguvwSIoJLz7WL3iXAua35xQxrXKXP SlhCkjt1oDyuKnRMY2Od/XD6pv9KSCpeRDuvfLB8soLhOFHYKiL0qj9SdrExujlbVMXc tdOg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=cEPHgusA1iNTVzAtVASj/dsVW3qwJykCsDOg4zK5Udc=; b=ZZ7RUo3WPaqXqKl3QwXMyeFuveH4Kt1Tw0RTnYBba8qM0uP9x8+lOT0JHJ16MFlCHA 1DSlebLF4r1JwM5Y+T7/sluvRd9mrruCyQde/R9NPQprWcFn5ZwGRiwGKkKeJQbODtd0 EPYyrEyr+pw9cFP4XGCGNg6CVeyZtwROSs4hydAjc3bbGNS+SNS9KutnMulWoyCyhgsB AqHnlxXsysZ/t6xueNSra2SftKURBOYD06c68YeuzGn2hNhNl6WwTtdQepRTfaK83l4e ORJYegC2RjTcUM0/No8Ocs0ZjfLBG+OWbKxFoogNOCuorvEfTYRi1mtJg2rhU6dAwtAM 7/7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=cEPHgusA1iNTVzAtVASj/dsVW3qwJykCsDOg4zK5Udc=; b=DbEMAFvXP5TdMBZDJNrdTfgdAwvyws5fXRyc2TDkghcdfc1KnpkLyF4/poUavrh3Dn Gl8nUrNvzpeZgkAM8c+97/DtJA82KcugaEc3EedvUS0uXLmNiza9Zqsl6mELLCEn2moe ooYckuQeUs8MeMzGUbvLOCP3CZwG8e7mrwZXWfeU0sQdwDGoJtR8l1p8Mtu9PznpQyZJ iDuunL/L3mj6D3unnufbuZIlYUFnCuhq5jH3ILnRjLxGm1X9COOjF/3QprRs9p0oqG88 1AeB4Xtz1wbLF28gJJ7Ey1mGtIzrjdZ1yaI258lRmbSQytVl3Alb0HtCjm7Y6/MJeCHj E/Dw== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAUp7uJcllQpvXCacsA13pF0Mw1xlmn9Hnik7jbtwvED2ByDMOdB Bbzs6HxANBr3jyhKc+VAPtk= X-Google-Smtp-Source: APXvYqw1v8RSq1pZ8XqPsgm01j8DNSgVFosfzWHGAkmjiUn0K6J7jmW0oqbrEmNxzPbjLR4qO373Jg== X-Received: by 2002:a05:600c:299:: with SMTP id 25mr21937961wmk.68.1581934157580; Mon, 17 Feb 2020 02:09:17 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:fc89:: with SMTP id g9ls5232058wrr.5.gmail; Mon, 17 Feb 2020 02:09:16 -0800 (PST) X-Received: by 2002:a5d:534d:: with SMTP id t13mr22271082wrv.77.1581934156932; Mon, 17 Feb 2020 02:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581934156; cv=none; d=google.com; s=arc-20160816; b=MYBePy9Yr35D6yUMCMSk2yN/B4cpPp4JmYNTnpWHvhvXVP5Igp2JwRasvEDGj6GWOr 3hOXDh8rEr6YN+fEwI0TIBipFUiKoC2tMNVwUzK8sIgwqScJMNVi8DQqglrZS3INKXNh 4OVSur6SkI4hNOcm1pybbY+3AXRR9vi2cLmoKLBPOlm418mK4nXgDPleBKwXXcTjxcfh UxoNiCU93kW/W742+/e3pgcf95hMnopxKiJusiGaLmRFueblC313lNRuRW7XY5umxKSW fKY841bc7qa8NYMWNc5VE2/+SfsTEcfoDsJfaZSSKX4TdfyulzmQYVg6OylDU4PAMQ0c 0+vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=TAcD67Thiu3iNPBFNjiixNRJ0Gf3/8R4w61BvRpPLGQ=; b=PVBFWD2gEERu66PrXgw7UKHAfdH/PT+oxSNdMeo7mtEPSBM76p7CElPbET1EoAPN87 FDWzeJkW6babZLKlTtZKJz5Ag09o07fi6gVTxhv9PN64D/8diEO5QB/PTgVerLfCsg/D P9S0/ASD5IHYnTcSxN94kpfcmo40OahYFY327IIuuVOdCN5TqM1eZrzatIJA3ALiKHDX ZKpRgudjEOJzM83cEd+UmtczqaqQG6E8nGdud9dEagCffYMCugB1e7z1QBmZiZPtE99k aIMJMsHXfaYkhiIZ05zUNxWOzPmha3q6Pf37r8JVfekiezs3wHcZscTzuTPkmFkIRqvI zCbg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id q202si321790wme.2.2020.02.17.02.09.16 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Feb 2020 02:09:16 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48Lfph5P1Nz1qr43; Mon, 17 Feb 2020 11:09:16 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48Lfph5F1hz1qrmT; Mon, 17 Feb 2020 11:09:16 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 7-omugZ4cj91; Mon, 17 Feb 2020 11:09:16 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Mon, 17 Feb 2020 11:09:16 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id AC0C44540406; Mon, 17 Feb 2020 11:09:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id F5tq1ARVhX2s; Mon, 17 Feb 2020 11:09:14 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [IPv6:2001:a61:6175:5d01:f546:6b75:97da:3506]) by babic.homelinux.org (Postfix) with ESMTP id 30D8A454035D; Mon, 17 Feb 2020 11:09:14 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH] swupdate-progress: fix warning Date: Mon, 17 Feb 2020 11:09:11 +0100 Message-Id: <20200217100911.1435-1-sbabic@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
swupdate-progress: fix warning
|
expand
|
diff --git a/tools/swupdate-progress.c b/tools/swupdate-progress.c index 9bf568f..c1d32f8 100644 --- a/tools/swupdate-progress.c +++ b/tools/swupdate-progress.c @@ -184,6 +184,7 @@ int main(int argc, char **argv) int opt_r = 0; int opt_p = 0; int c; + int ret; char *script = NULL; RECOVERY_STATUS status = IDLE; /* Update Status (Running, Failure) */ @@ -312,7 +313,10 @@ int main(int argc, char **argv) "SUCCESS" : "FAILURE") == -1) { fprintf(stderr, "OOM calling post-exec script\n"); } else { - system(cmd); + ret = system(cmd); + if (ret) { + fprintf(stdout, "Executed %s with error : %d\n", cmd, ret); + } free(cmd); } }
86f273c2b2258c06321ef30138c81e2d7e73b2ea introduces a warning - fixed. Signed-off-by: Stefano Babic <sbabic@denx.de> --- tools/swupdate-progress.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)