Skip to content

Commit

Permalink
crypto, xor: Sanitize checksumming function selection output
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Borislav Petkov authored and herbertx committed Apr 9, 2012
1 parent a0ea0f6 commit d788fec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crypto/xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ calibrate_xor_blocks(void)

if (fastest) {
printk(KERN_INFO "xor: automatically using best "
"checksumming function: %s\n",
fastest->name);
"checksumming function:\n");
xor_speed(fastest);
goto out;
} else {
printk(KERN_INFO "xor: measuring software checksum speed\n");
XOR_TRY_TEMPLATES;
Expand All @@ -146,6 +146,7 @@ calibrate_xor_blocks(void)

#undef xor_speed

out:
free_pages((unsigned long)b1, 2);

active_template = fastest;
Expand Down

0 comments on commit d788fec

Please sign in to comment.