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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3DC30C77B7F for ; Sun, 14 May 2023 15:30:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C738847D0; Sun, 14 May 2023 17:29:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="m+w+NNbo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE133847C1; Sun, 14 May 2023 17:29:17 +0200 (CEST) Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 01066847BB for ; Sun, 14 May 2023 17:29:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-ba7a7423cc9so650065276.1 for ; Sun, 14 May 2023 08:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1684078153; x=1686670153; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/S/PXy/4Lr8Wr1R2pZEvsSRBiqjyIBRLIbWpYcBoeAQ=; b=m+w+NNboUQOZRdK/lDf3tnERGgzGO06BoZ8sZMxQHsxbMcoiKhX5ofw8dXUUkIAMVP YzJDoAvmMzK4gDHI4/vtPOLky/TQDxm2eKcDPzorV9aAKknZOLcM55uog941VpskpweB eQtpsS2l15KBel4wXp1DCEm6pvju5EpTMJlxI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684078153; x=1686670153; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/S/PXy/4Lr8Wr1R2pZEvsSRBiqjyIBRLIbWpYcBoeAQ=; b=XmA4DytoDPsyTDizjzarc17WVBhFSZ+ajarOr8xwG/uxJdZQJGjhgbCYaiJi/D62A4 Oe5do2qpihgoqSOVFWni91ZxWzZ//mjZeExjaCoj9umilPzFi+yMJYDMTPEgrZeXu2rR 3GVxhGqx5/FH5iJp/aDnMKsfMBY+t/FAwKKipTl1zGLZ9RA0+SrqmhPkK83OUCbwuuab 4D1RZvbcQ+z5IrVUnzYrL7A49mJymvgOw7ghSqxJL7lWMcrTRxe4XOk59vIqrRlzUIwH 0RLnArhNb+yZWZ0gE2MvCYn7kXEVjEH+BDkfZXhfONlHOx9UtgDDNtqcVXozJX7HPBJy Z1yg== X-Gm-Message-State: AC+VfDyp22KhttWd7IwHcX2Uw3XYGzoddOVhmLJOSknBwxsjAVV31k17 GRWu/Dp++1ZeosiFMN0+afabK/UtHOhyrMcqleO32g== X-Google-Smtp-Source: ACHHUZ4mu9EvJF4mC+nzap6vN56EW06E1fguhq7YmvHmz8NeeOQulnjjQ6rNsrKdR9fSdXD6yw6Z1g== X-Received: by 2002:a0d:f281:0:b0:560:beeb:6fc1 with SMTP id b123-20020a0df281000000b00560beeb6fc1mr16338832ywf.16.1684078153770; Sun, 14 May 2023 08:29:13 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-9d66-8b01-4e1e-2379.res6.spectrum.com. [2603:6081:7b00:6400:9d66:8b01:4e1e:2379]) by smtp.gmail.com with ESMTPSA id s12-20020a81bf4c000000b00556aa81f615sm6209249ywk.68.2023.05.14.08.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 May 2023 08:29:13 -0700 (PDT) Date: Sun, 14 May 2023 11:29:11 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Vincent =?iso-8859-1?Q?Stehl=E9?= Subject: Re: [PATCH v2] bootstd: Tidy up reporting of errors Message-ID: <20230514152911.GX2398826@bill-the-cat> References: <20230510223427.209539-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="I5koh5u+oE2lFjSv" Content-Disposition: inline In-Reply-To: <20230510223427.209539-1-sjg@chromium.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean --I5koh5u+oE2lFjSv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 10, 2023 at 04:34:26PM -0600, Simon Glass wrote: > In a few cases the error handling is not quite right. Make sure we > return the actual error in distro_efi_read_bootflow_file() rather than > -EINVAL. Return -IO when a file cannot be read. Also show the error name > if available. >=20 > This does not change operation, but does make it easier to diagnose > problems. >=20 > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --I5koh5u+oE2lFjSv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmRg/kcACgkQFHw5/5Y0 tyzamgv7B/06/WODPfXsAj4U0P3Vqq6BgQKRFd4T5J0cqimJPzqRZ85LxvNSIUZv Ubd2htu477VYoIxnk2134k2pGXl0ej4ey/SfFB3Psoly0HbGd1gsd+L37l+OraSV 6UNcLW/N0wz59fWw6zw25v58btcGzAdjSeqNhojO43djU1K8WtUDEVD2Ctn62R3P vkv4M4byG+Ol62SxjjqpFRg4nKdHDUWjlmREAcA/CzMmOTB9nd75YeZg+p3cX99C Lc//r9xZP4l732ilP74xl5sQWEgi0mNGYm12ZINPE1TvoVIOgUoiw2IrwZgPnEIS mruaX5xxFOVspxVhSh2z6K5oXUBOf36rfF/27rmZs1xHiuoBnvfJvdKgpz2lGFP+ SOO6xzYSR5JTPZ1TSJGGmQWRgdrskYRFU4Y1Ud7DWFS33tgvWuhKo3lrGw0WYdmf nSz3ISgXLF49gZM6F1mp9Q2fdpc78ckvj9ueDEFazA0/HtDhuCHBQz2bxInVLaPg GrHMs0Ac =51oF -----END PGP SIGNATURE----- --I5koh5u+oE2lFjSv--