crypto: tcrypt - Use pr_info/pr_err
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Wed, 26 Oct 2022 19:16:14 +0000 (12:16 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Nov 2022 09:33:22 +0000 (17:33 +0800)
commit837a99f59043c3505d69761575172da1d09220b5
tree285adef0a15f6cdd5806a67254f193a2a74fd68d
parentfdaeb224e2bf747942653e4f70226fcfe60fbf73
crypto: tcrypt - Use pr_info/pr_err

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 <anirudh.venkataramanan@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c