Commit d788fec8 authored by Borislav Petkov's avatar Borislav Petkov Committed by Herbert Xu

crypto, xor: Sanitize checksumming function selection output

Currently, it says

[    1.015541] xor: automatically using best checksumming function: generic_sse
[    1.040769]    generic_sse:  6679.000 MB/sec
[    1.045377] xor: using function: generic_sse (6679.000 MB/sec)

and repeats the function name three times unnecessarily. Change it into

[    1.015115] xor: automatically using best checksumming function:
[    1.040794]    generic_sse:  6680.000 MB/sec

and save us a line in dmesg.

No functional change.

Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a0ea0f6d
...@@ -129,9 +129,9 @@ calibrate_xor_blocks(void) ...@@ -129,9 +129,9 @@ calibrate_xor_blocks(void)
if (fastest) { if (fastest) {
printk(KERN_INFO "xor: automatically using best " printk(KERN_INFO "xor: automatically using best "
"checksumming function: %s\n", "checksumming function:\n");
fastest->name);
xor_speed(fastest); xor_speed(fastest);
goto out;
} else { } else {
printk(KERN_INFO "xor: measuring software checksum speed\n"); printk(KERN_INFO "xor: measuring software checksum speed\n");
XOR_TRY_TEMPLATES; XOR_TRY_TEMPLATES;
...@@ -146,6 +146,7 @@ calibrate_xor_blocks(void) ...@@ -146,6 +146,7 @@ calibrate_xor_blocks(void)
#undef xor_speed #undef xor_speed
out:
free_pages((unsigned long)b1, 2); free_pages((unsigned long)b1, 2);
active_template = fastest; active_template = fastest;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment