Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3068DC433E1 for ; Thu, 18 Jun 2020 15:44:58 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0E16A206FA for ; Thu, 18 Jun 2020 15:44:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E16A206FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jlwie-0000Rq-Dw; Thu, 18 Jun 2020 15:44:48 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jlwid-0000Rl-Pb for xen-devel@lists.xenproject.org; Thu, 18 Jun 2020 15:44:47 +0000 X-Inumbo-ID: a2cd5bd0-b17a-11ea-bab1-12813bfff9fa Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id a2cd5bd0-b17a-11ea-bab1-12813bfff9fa; Thu, 18 Jun 2020 15:44:46 +0000 (UTC) Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: XaVla1quVof99QrAtv8blUWXu9G6GZWD3AN49519F+akA1o5/jZ1qohqu6i0voh6YcCltUcM8e 9rSGk8QRaKsFW3gVkuVtjo4Xti2atfbGJpR2iO0hBKZzqRzNjkSqpulVxoP5nd3zeV0HPDWMPk +M5b/BNWKIGBE6gX8Lxb5dSk1FgpfHUMM5z2ME80awtjkArO6az6n6lE7EgHde67UYgNn1GO0G cIzhjhJVQ/pp+OIgrQXoTbpXHZB5af1syYNDqrs9QRqlty2rSdcnijJir88PVbturk37oOqHpM jPk= X-SBRS: 2.7 X-MesageID: 20386899 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.75,251,1589256000"; d="scan'208";a="20386899" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <24299.35817.486533.42273@mariner.uk.xensource.com> Date: Thu, 18 Jun 2020 16:44:41 +0100 To: "paul@xen.org" Subject: RE: [PATCH for-4.14 v3] tools/xen-ucode: return correct exit code on failed microcode update In-Reply-To: <005b01d64482$da189650$8e49c2f0$@xen.org> References: <1592360353-31231-1-git-send-email-igor.druzhinin@citrix.com> <005b01d64482$da189650$8e49c2f0$@xen.org> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Igor Druzhinin , "xadimgnik@gmail.com" , "wl@xen.org" , "xen-devel@lists.xenproject.org" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Paul Durrant writes ("RE: [PATCH for-4.14 v3] tools/xen-ucode: return correct exit code on failed microcode update"): > > -----Original Message----- > > From: Igor Druzhinin > > Sent: 17 June 2020 03:19 > > To: xen-devel@lists.xenproject.org > > Cc: ian.jackson@eu.citrix.com; wl@xen.org; xadimgnik@gmail.com; Igor Druzhinin > > > > Subject: [PATCH for-4.14 v3] tools/xen-ucode: return correct exit code on failed microcode update > > > > Otherwise it's difficult to know if operation failed inside the automation. > > > > While at it, also switch to returning 1 and 2 instead of errno to avoid > > incompatibilies between errno and special exit code numbers. > > > > Signed-off-by: Igor Druzhinin Thanks, this looks good to me. > Reviewed-by: Paul Durrant > Release-acked-by: Paul Durrant Reviewed-by: Ian Jackson I will commit this in a moment. Ian.