Skip to contentSkip to conversation

crypto, xor: Sanitize checksumming function selection output

PATCH In review Borislav Petkov 2 participants 2 messages Apr 4, 2012 – Apr 9, 2012 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto, xor: Sanitize checksumming function selection output

From: Borislav Petkov <[email protected]>

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.

---
 crypto/xor.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
crypto/xor.c +3 -2
index b75182d8ab14..664b6dfa9e2c 100644
@@ -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;
@@ -146,6 +146,7 @@ calibrate_xor_blocks(void)
 
 #undef xor_speed
 
+ out:
 	free_pages((unsigned long)b1, 2);
 
 	active_template = fastest;
Signature · 1 line
1.7.9.3.362.g71319
#1 lore raw
Quoted 13 lines · Borislav Petkov

From: Borislav Petkov <[email protected]>

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
Quoted 6 lines

and save us a line in dmesg.

No functional change.

Patch applied. Thanks!

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt