From patchwork Mon Jun 5 05:33:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 101376 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp762229qgd; Sun, 4 Jun 2017 22:33:55 -0700 (PDT) X-Received: by 10.99.158.18 with SMTP id s18mr10398076pgd.113.1496640835160; Sun, 04 Jun 2017 22:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496640835; cv=none; d=google.com; s=arc-20160816; b=Mnjajv0Gkcb8xIJmBpDYlKJq4YeNBoVgbQ7ZELWuXtUqYKH6ydPoEozF7aMS1zwJRc nDWNKqhcvxsjM/6W4GsuoSsDETgfRv571otAY2njUG8fwdc1Ed87toVWcPlkG5QWRJQf 4ty//N0qBd2LcV68akFw8ELmR5UxqS5AbKUQmHAbm4mBILeejjSQHAM+j3JtxMjf/DUs Iu923uWaVSA7Jv2t4O9jQ79HBn9ZmMRIeNg0dtn5nSApcbIKXetr2DoHTZrtf3zuDP28 KT8Hu4d5PL62EEh0qiANhSiugMxcrI8tVfHhs5HRpBNidNTYaL7nj2iFkvEVRnkX83Bw rHYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=2JZo12kX9WTzSvB+62PodR4kSzLGV6qpqE60+/Z3rag=; b=wP/+GfNPEA8OTHJlEh2x1f2p5m6C0kQDrJCYI9phn7APo72ViN+xG0a8XRgU7UYi1Z +B/XbZXguTEdXLPGMsaa4UGCOFPRJr6GTuuZMGhuDSpn7xF0U0HrgTt6JjMjgtTHBQac JPXYjyAUIdGEcv8YWG7xptlzfO2mxHlfVI47Q9WlrYhIEhrJp3jNqL8qgltgw2nRKUAN BhaPazXudMgeKqi15EIBHLZH8eMJ+x2uv0Gt8a3ODmChsPAl6sES+qMIwwgCkXY5eQC0 IpDz9NSHvfY1nZzAiUmBhG40IA8aw4BDTdoh7rjMQ4ZnXrZUXwtpuQ4YmSJfHjOZIvDV vgVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o15si13671590pgd.71.2017.06.04.22.33.55; Sun, 04 Jun 2017 22:33:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751249AbdFEFdx (ORCPT + 1 other); Mon, 5 Jun 2017 01:33:53 -0400 Received: from foss.arm.com ([217.140.101.70]:57458 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751241AbdFEFdw (ORCPT ); Mon, 5 Jun 2017 01:33:52 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E90C71596; Sun, 4 Jun 2017 22:33:51 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.132]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BDDA03F589; Sun, 4 Jun 2017 22:33:50 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: testmgr: use consistent format for errors Date: Mon, 5 Jun 2017 08:33:43 +0300 Message-Id: <1496640823-30421-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fix inconsistent format and spelling in hash tests error messages. Signed-off-by: Gilad Ben-Yossef --- crypto/testmgr.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.1.4 diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 6f5f3ed..8c68c99 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -218,14 +218,14 @@ static int ahash_partial_update(struct ahash_request **preq, crypto_ahash_reqtfm(req)); state = kmalloc(statesize + sizeof(guard), GFP_KERNEL); if (!state) { - pr_err("alt: hash: Failed to alloc state for %s\n", algo); + pr_err("alg: hash: Failed to alloc state for %s\n", algo); goto out_nostate; } memcpy(state + statesize, guard, sizeof(guard)); ret = crypto_ahash_export(req, state); WARN_ON(memcmp(state + statesize, guard, sizeof(guard))); if (ret) { - pr_err("alt: hash: Failed to export() for %s\n", algo); + pr_err("alg: hash: Failed to export() for %s\n", algo); goto out; } ahash_request_free(req); @@ -344,19 +344,19 @@ static int __test_hash(struct crypto_ahash *tfm, } else { ret = wait_async_op(&tresult, crypto_ahash_init(req)); if (ret) { - pr_err("alt: hash: init failed on test %d " + pr_err("alg: hash: init failed on test %d " "for %s: ret=%d\n", j, algo, -ret); goto out; } ret = wait_async_op(&tresult, crypto_ahash_update(req)); if (ret) { - pr_err("alt: hash: update failed on test %d " + pr_err("alg: hash: update failed on test %d " "for %s: ret=%d\n", j, algo, -ret); goto out; } ret = wait_async_op(&tresult, crypto_ahash_final(req)); if (ret) { - pr_err("alt: hash: final failed on test %d " + pr_err("alg: hash: final failed on test %d " "for %s: ret=%d\n", j, algo, -ret); goto out; } @@ -488,13 +488,13 @@ static int __test_hash(struct crypto_ahash *tfm, ahash_request_set_crypt(req, sg, result, template[i].tap[0]); ret = wait_async_op(&tresult, crypto_ahash_init(req)); if (ret) { - pr_err("alt: hash: init failed on test %d for %s: ret=%d\n", + pr_err("alg: hash: init failed on test %d for %s: ret=%d\n", j, algo, -ret); goto out; } ret = wait_async_op(&tresult, crypto_ahash_update(req)); if (ret) { - pr_err("alt: hash: update failed on test %d for %s: ret=%d\n", + pr_err("alg: hash: update failed on test %d for %s: ret=%d\n", j, algo, -ret); goto out; } @@ -505,7 +505,7 @@ static int __test_hash(struct crypto_ahash *tfm, hash_buff, k, temp, &sg[0], algo, result, &tresult); if (ret) { - pr_err("hash: partial update failed on test %d for %s: ret=%d\n", + pr_err("alg: hash: partial update failed on test %d for %s: ret=%d\n", j, algo, -ret); goto out_noreq; } @@ -513,7 +513,7 @@ static int __test_hash(struct crypto_ahash *tfm, } ret = wait_async_op(&tresult, crypto_ahash_final(req)); if (ret) { - pr_err("alt: hash: final failed on test %d for %s: ret=%d\n", + pr_err("alg: hash: final failed on test %d for %s: ret=%d\n", j, algo, -ret); goto out; }