From patchwork Fri Oct 27 06:04:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 117284 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp388461qgn; Thu, 26 Oct 2017 23:05:29 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RN3wT973yr2y47I+jy/ynL5cSKx0X1M5d1dQagH2lehcfJxftQUZzJjJbueiGTx8vAo6gW X-Received: by 10.80.136.4 with SMTP id b4mr12882452edb.155.1509084329376; Thu, 26 Oct 2017 23:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509084329; cv=none; d=google.com; s=arc-20160816; b=bOq/fw/+4QPtYKqbSBs5o0zQNVFygLLQ616S+RYBHwp3yPuqcmhkHBjqRaZg7f7VQx vO2sClNiB6AUaUHu0bzL96fBGDkcC1O3k+pT5FnJ8vBq8FV9M4A3jLha69aaCiKsP2YU zGt8CqrzQslSXhqDoahPZlIETBk9ANasHR4JhFBxAeo7gQkvvb3wKuP6tjn4NLj+8Lia 8KYMS9lmkGJvbPQHte3d8d+viFfbztOpBfpiv3Yc9XI0JPkaYDj4AriUQ6sa043iVo4s CGaBno32WuKID8T2h1lo7I/J2I27KhsG7TyMZ+AYpy9P4wXbgorgCscX81xlrhFzeYDB AMdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:dkim-filter:arc-authentication-results; bh=Lna9kXH/ok0AEshhmX4Qj0PkasaH0q4eBi+gaVsQY20=; b=KaEXmnWvyY6znZ2x1bodQRLyotQRE9WT2eCYeWTd6Scvx3fY+2xzd1AfHXrYi1Mzra yw0g0wpN8sTycabBQICgiqziI2AlqxYeHGx1Uhg0DU8WoHZxAfAhvlCeq/vZfE4QrjgJ nakFQ1jGLbXFxhlvfbiFT3593glXEEk+w0hC2fAL4pz5hPCI+LZc0QAbXQIUUfHs9xX9 baoKPH7WKXeVwUWr+MAcOlGWkzwKOAzlDOxS+XqoB06+kpHJi7tLVvvDc/A6I3kTcPkJ O5zE7tF+WQf3cJeBPZouV3J0kEk78kTDEx8PDiEk/gC18fyfBZGh5sdbwKgVHWn292VE u2Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=ojATF2tQ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id a32si1842419edf.314.2017.10.26.23.05.29; Thu, 26 Oct 2017 23:05:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=ojATF2tQ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id C6782C21DA9; Fri, 27 Oct 2017 06:05:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 086D4C21C34; Fri, 27 Oct 2017 06:05:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 47C25C21C46; Fri, 27 Oct 2017 06:05:23 +0000 (UTC) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by lists.denx.de (Postfix) with ESMTPS id AA394C21C29 for ; Fri, 27 Oct 2017 06:05:21 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id v9R64Ogv013972; Fri, 27 Oct 2017 15:04:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v9R64Ogv013972 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1509084265; bh=5crAyMSgKwDv8tk6vOxqBuvlhKts9hN25c8A32Agnm0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ojATF2tQeqHBSW4XttpO230mR8/yvEpQcj1LKFBZX5Wc/hIueVKDW3w2SVozVrsxf AtdUU0ImdEnAWNvFNY5KoDRKQYI9ecz13QJgLgWyPofWJa9ewhGC99qZTx3FkM7bRW lucnp3e5CeWyULMKeSQSfFfgrveYEJ4oXCwpsxFKdtRZPJGWe/EoKY5fJ5HEjv0dqO F/luUarpiYgMFEYFpk1t/HddzVbqvT/NtmpVdN0/Nn6Ld44YIR3aK714lQy374PtbN H6PWUjW9tGC6rTRv3j5lqF4CFImzZxvj1FCIExfp9hsJ5y++dmY0KJPlhOFzD85YG7 BaJyatgT/jQ0w== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 27 Oct 2017 15:04:21 +0900 Message-Id: <1509084261-16126-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509084261-16126-1-git-send-email-yamada.masahiro@socionext.com> References: <1509084261-16126-1-git-send-email-yamada.masahiro@socionext.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 2/2] tools: image: fix message when fail to add verification data for config X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This function is called when signing configuration nodes. Adjust the error message. I do not know why we do not need to show the error message in case of ENOSPC. Remove the if-conditional that seems unnecessary. Signed-off-by: Masahiro Yamada --- tools/image-host.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/image-host.c b/tools/image-host.c index d42c1ca..2c0030b 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -626,10 +626,8 @@ static int fit_config_process_sig(const char *keydir, void *keydest, /* Write the public key into the supplied FDT file */ if (keydest) { ret = info.crypto->add_verify_data(&info, keydest); - if (ret == -ENOSPC) - return -ENOSPC; if (ret) { - printf("Failed to add verification data for '%s' signature node in '%s' image node\n", + printf("Failed to add verification data for '%s' signature node in '%s' configuration node\n", node_name, conf_name); } return ret;