aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Dilger <[email protected]>2016-03-26 15:40:54 -0400
committerGreg Kroah-Hartman <[email protected]>2016-03-29 12:06:51 -0700
commit8260d4e2c72b6fc02ab0bae45f3ed0f259092368 (patch)
tree1b78a42810ed9c035d59c2cec848aec36631c81d
parent6ba3f37825982cf71e55ef87aadbffe8f4345a05 (diff)
staging: lustre: libcfs: print crypto performance result only on success
Only print info about the crypto performance when no error is encounter. Signed-off-by: Andreas Dilger <[email protected]> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5053 Reviewed-on: http://review.whamcloud.com/9990 Reviewed-by: Bob Glossman <[email protected]> Reviewed-by: James Simmons <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c b/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c
index 4857a11c0dd6..3d74fd1937c8 100644
--- a/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c
+++ b/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c
@@ -348,9 +348,10 @@ out_err:
tmp = ((bcount * buf_len / jiffies_to_msecs(end - start)) *
1000) / (1024 * 1024);
cfs_crypto_hash_speeds[hash_alg] = (int)tmp;
+ CDEBUG(D_CONFIG, "Crypto hash algorithm %s speed = %d MB/s\n",
+ cfs_crypto_hash_name(hash_alg),
+ cfs_crypto_hash_speeds[hash_alg]);
}
- CDEBUG(D_INFO, "Crypto hash algorithm %s speed = %d MB/s\n",
- cfs_crypto_hash_name(hash_alg), cfs_crypto_hash_speeds[hash_alg]);
}
/**