mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
crypto: sun8i-ss - better debug printing
This patch reworks the way debug info are printed. Instead of printing raw numbers, let's add a bit of context. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
3bf9754b0f
commit
68cbba1639
@ -424,19 +424,19 @@ static int sun8i_ss_debugfs_show(struct seq_file *seq, void *v)
|
|||||||
continue;
|
continue;
|
||||||
switch (ss_algs[i].type) {
|
switch (ss_algs[i].type) {
|
||||||
case CRYPTO_ALG_TYPE_SKCIPHER:
|
case CRYPTO_ALG_TYPE_SKCIPHER:
|
||||||
seq_printf(seq, "%s %s %lu %lu\n",
|
seq_printf(seq, "%s %s reqs=%lu fallback=%lu\n",
|
||||||
ss_algs[i].alg.skcipher.base.cra_driver_name,
|
ss_algs[i].alg.skcipher.base.cra_driver_name,
|
||||||
ss_algs[i].alg.skcipher.base.cra_name,
|
ss_algs[i].alg.skcipher.base.cra_name,
|
||||||
ss_algs[i].stat_req, ss_algs[i].stat_fb);
|
ss_algs[i].stat_req, ss_algs[i].stat_fb);
|
||||||
break;
|
break;
|
||||||
case CRYPTO_ALG_TYPE_RNG:
|
case CRYPTO_ALG_TYPE_RNG:
|
||||||
seq_printf(seq, "%s %s %lu %lu\n",
|
seq_printf(seq, "%s %s reqs=%lu tsize=%lu\n",
|
||||||
ss_algs[i].alg.rng.base.cra_driver_name,
|
ss_algs[i].alg.rng.base.cra_driver_name,
|
||||||
ss_algs[i].alg.rng.base.cra_name,
|
ss_algs[i].alg.rng.base.cra_name,
|
||||||
ss_algs[i].stat_req, ss_algs[i].stat_bytes);
|
ss_algs[i].stat_req, ss_algs[i].stat_bytes);
|
||||||
break;
|
break;
|
||||||
case CRYPTO_ALG_TYPE_AHASH:
|
case CRYPTO_ALG_TYPE_AHASH:
|
||||||
seq_printf(seq, "%s %s %lu %lu\n",
|
seq_printf(seq, "%s %s reqs=%lu fallback=%lu\n",
|
||||||
ss_algs[i].alg.hash.halg.base.cra_driver_name,
|
ss_algs[i].alg.hash.halg.base.cra_driver_name,
|
||||||
ss_algs[i].alg.hash.halg.base.cra_name,
|
ss_algs[i].alg.hash.halg.base.cra_name,
|
||||||
ss_algs[i].stat_req, ss_algs[i].stat_fb);
|
ss_algs[i].stat_req, ss_algs[i].stat_fb);
|
||||||
|
Loading…
Reference in New Issue
Block a user