Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795055647; b=e8TueUR7DDCGBaTmJYW83PR2jKD5PtW3P+KLF1Qd19P+bwPj6bfLJin8oO0tRFIKBQ6p X+d6/CoTN3cm/mD8qwCKy4E7Jm8idP04PkbTauOWxsTD/HSe+nx9tFKOJG1VCFxUUZo+u FkYGRKTtKVQWh2zxPX/i1PYbsOgD+HdN4cJxUl9EJr9j6SqtzsHl8fkpRqYgRWIMHmgGJ SidM18mzC8MVdYOrfF1xf9oXz9XOglMkvQGYhrA0OeZrFTwxRD71IZWUabmQqtzhr9gl6 /CYaoMu+nAB9DCAnYcuAfmg5K4LYh3n+QQ1IVYqoqwOVaStHbaWARWLzTOZFNojIJYQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795055647; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=0CfV3grb3I8I6a0rueuWvF/dUkZKMXuicWg2jjY6Tjo=; b=FfSgaaveQzhYMEiXimN5cMusuzTWCpFeX+HYVY32iPinirZF2XuLo+bt05vQ6KmdSGb2 ve5LNn2IjlYM7mt6DKck25zRKW95asqNjokLW8yQCdv+DxtZTg/jUtsKK7bMzqVTc6iZ3 ZKALHqhqVf9hpA4Z1mDbDka9/IKHupWrb7peJyfw3sRlvMBUqdlRVR3b2obz1ekFLIap7 gLNWGL4FPSIwWIhnEv/yYC4eo27o4a7KDBgx5ZnHH9ntWE7XfxqL0nONWLFNw2HQdXzng 8c4LcJ9xsSGKIeVkBqsfB7t361pCOqGfPZpOpmfeUl+hB0LM64ePYQmkvxnkaYFZGIA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BvZ7Z9i1; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF7A0606A31C; Thu, 19 Nov 2026 02:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BvZ7Z9i1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33B351F000C4; Thu, 19 Nov 2026 02:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795055647; bh=0CfV3grb3I8I6a0rueuWvF/dUkZKMXuicWg2jjY6Tjo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BvZ7Z9i1O90sjNfvpHqIGVzQhrOI6fGNub/leqNrGI5jbsklpkHV4Fnn1nUpvFIds UghQsBxFLH/jC6o7WtL2ZCcybQWdwjuxP7ogdZr92HHpZb0nDRBm6LUo70ELWROvGF Vr+1d8TzBB5y4ZBklxjT7awbHNUbRCYFXoOueI5E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Anirudh Venkataramanan , Herbert Xu , Sasha Levin Subject: [PATCH 5.15 1706/2214] crypto: tcrypt - Use pr_info/pr_err Date: Wed, 18 Nov 2026 15:56:22 +0100 Message-ID: <20261118150120.031026588@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150009.797899913@linuxfoundation.org> References: <20261118150009.797899913@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Anirudh Venkataramanan [ Upstream commit 837a99f59043c3505d69761575172da1d09220b5 ] Currently, there's mixed use of printk() and pr_info()/pr_err(). The latter prints the module name (because pr_fmt() is defined so) but the former does not. As a result there's inconsistency in the printed output. For example: modprobe mode=211: [...] test 0 (160 bit key, 16 byte blocks): 1 operation in 2320 cycles (16 bytes) [...] test 1 (160 bit key, 64 byte blocks): 1 operation in 2336 cycles (64 bytes) modprobe mode=215: [...] tcrypt: test 0 (160 bit key, 16 byte blocks): 1 operation in 2173 cycles (16 bytes) [...] tcrypt: test 1 (160 bit key, 64 byte blocks): 1 operation in 2241 cycles (64 bytes) Replace all instances of printk() with pr_info()/pr_err() so that the module name is printed consistently. Signed-off-by: Anirudh Venkataramanan Signed-off-by: Herbert Xu Stable-dep-of: 3a31a4baad67 ("crypto: tcrypt - Avoid reading req->base after submission") Signed-off-by: Sasha Levin --- crypto/tcrypt.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 1558c17614cfa..32fbdde60a669 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -586,8 +586,8 @@ static void test_aead_speed(const char *algo, int enc, unsigned int secs, } crypto_init_wait(&wait); - printk(KERN_INFO "\ntesting speed of %s (%s) %s\n", algo, - get_driver_name(crypto_aead, tfm), e); + pr_info("\ntesting speed of %s (%s) %s\n", algo, + get_driver_name(crypto_aead, tfm), e); req = aead_request_alloc(tfm, GFP_KERNEL); if (!req) { @@ -635,8 +635,8 @@ static void test_aead_speed(const char *algo, int enc, unsigned int secs, memset(iv, 0xff, iv_len); crypto_aead_clear_flags(tfm, ~0); - printk(KERN_INFO "test %u (%d bit key, %d byte blocks): ", - i, *keysize * 8, bs); + pr_info("test %u (%d bit key, %d byte blocks): ", + i, *keysize * 8, bs); memset(tvmem[0], 0xff, PAGE_SIZE); @@ -888,8 +888,8 @@ static void test_ahash_speed_common(const char *algo, unsigned int secs, return; } - printk(KERN_INFO "\ntesting speed of async %s (%s)\n", algo, - get_driver_name(crypto_ahash, tfm)); + pr_info("\ntesting speed of async %s (%s)\n", algo, + get_driver_name(crypto_ahash, tfm)); if (crypto_ahash_digestsize(tfm) > MAX_DIGEST_SIZE) { pr_err("digestsize(%u) > %d\n", crypto_ahash_digestsize(tfm), @@ -2827,7 +2827,7 @@ static int __init tcrypt_mod_init(void) err = do_test(alg, type, mask, mode, num_mb); if (err) { - printk(KERN_ERR "tcrypt: one or more tests failed!\n"); + pr_err("one or more tests failed!\n"); goto err_free_tv; } else { pr_debug("all tests passed\n"); -- 2.53.0