Commit 3513828c authored by Anirudh Venkataramanan's avatar Anirudh Venkataramanan Committed by Herbert Xu

crypto: tcrypt - Drop leading newlines from prints

The top level print banners have a leading newline. It's not entirely
clear why this exists, but it makes it harder to parse tcrypt test output
using a script. Drop said newlines.

tcrypt output before this patch:

[...]
      testing speed of rfc4106(gcm(aes)) (rfc4106-gcm-aesni) encryption
[...] test 0 (160 bit key, 16 byte blocks): 1 operation in 2320 cycles (16 bytes)

tcrypt output with this patch:

[...] testing speed of rfc4106(gcm(aes)) (rfc4106-gcm-aesni) encryption
[...] test 0 (160 bit key, 16 byte blocks): 1 operation in 2320 cycles (16 bytes)
Signed-off-by: default avatarAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a2ef5630
...@@ -324,7 +324,7 @@ static void test_mb_aead_speed(const char *algo, int enc, int secs, ...@@ -324,7 +324,7 @@ static void test_mb_aead_speed(const char *algo, int enc, int secs,
crypto_req_done, &data[i].wait); crypto_req_done, &data[i].wait);
} }
pr_info("\ntesting speed of multibuffer %s (%s) %s\n", algo, pr_info("testing speed of multibuffer %s (%s) %s\n", algo,
get_driver_name(crypto_aead, tfm), e); get_driver_name(crypto_aead, tfm), e);
i = 0; i = 0;
...@@ -575,7 +575,7 @@ static void test_aead_speed(const char *algo, int enc, unsigned int secs, ...@@ -575,7 +575,7 @@ static void test_aead_speed(const char *algo, int enc, unsigned int secs,
} }
crypto_init_wait(&wait); crypto_init_wait(&wait);
pr_info("\ntesting speed of %s (%s) %s\n", algo, pr_info("testing speed of %s (%s) %s\n", algo,
get_driver_name(crypto_aead, tfm), e); get_driver_name(crypto_aead, tfm), e);
req = aead_request_alloc(tfm, GFP_KERNEL); req = aead_request_alloc(tfm, GFP_KERNEL);
...@@ -877,7 +877,7 @@ static void test_ahash_speed_common(const char *algo, unsigned int secs, ...@@ -877,7 +877,7 @@ static void test_ahash_speed_common(const char *algo, unsigned int secs,
return; return;
} }
pr_info("\ntesting speed of async %s (%s)\n", algo, pr_info("testing speed of async %s (%s)\n", algo,
get_driver_name(crypto_ahash, tfm)); get_driver_name(crypto_ahash, tfm));
if (crypto_ahash_digestsize(tfm) > MAX_DIGEST_SIZE) { if (crypto_ahash_digestsize(tfm) > MAX_DIGEST_SIZE) {
...@@ -1117,7 +1117,7 @@ static void test_mb_skcipher_speed(const char *algo, int enc, int secs, ...@@ -1117,7 +1117,7 @@ static void test_mb_skcipher_speed(const char *algo, int enc, int secs,
crypto_init_wait(&data[i].wait); crypto_init_wait(&data[i].wait);
} }
pr_info("\ntesting speed of multibuffer %s (%s) %s\n", algo, pr_info("testing speed of multibuffer %s (%s) %s\n", algo,
get_driver_name(crypto_skcipher, tfm), e); get_driver_name(crypto_skcipher, tfm), e);
i = 0; i = 0;
...@@ -1324,7 +1324,7 @@ static void test_skcipher_speed(const char *algo, int enc, unsigned int secs, ...@@ -1324,7 +1324,7 @@ static void test_skcipher_speed(const char *algo, int enc, unsigned int secs,
return; return;
} }
pr_info("\ntesting speed of %s %s (%s) %s\n", async ? "async" : "sync", pr_info("testing speed of %s %s (%s) %s\n", async ? "async" : "sync",
algo, get_driver_name(crypto_skcipher, tfm), e); algo, get_driver_name(crypto_skcipher, tfm), e);
req = skcipher_request_alloc(tfm, GFP_KERNEL); req = skcipher_request_alloc(tfm, GFP_KERNEL);
......
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