• Anirudh Venkataramanan's avatar
    crypto: tcrypt - Use pr_info/pr_err · 837a99f5
    Anirudh Venkataramanan authored
    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: default avatarAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    837a99f5
tcrypt.c 77.2 KB