]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon - fix the format string type error
authorZhushuai Yin <yinzhushuai@huawei.com>
Mon, 30 Mar 2026 06:25:27 +0000 (14:25 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 12 Apr 2026 08:46:28 +0000 (16:46 +0800)
commitf94f6cff1dcf9296879c7242dda8171320188ed7
treebdef8c54f2729685c084701f702f37ec4e799e60
parent02c64052fad03699b9c6d1df2f9b444d17e4ac50
crypto: hisilicon - fix the format string type error

1. The return value val of sec_debugfs_atomic64_get is of the
u64 type, but %lld instead of %llu is used in DEFINE_DEBUGFS_ATTRIBUTE.
Fix it.
2. In debugfs.c, since the types of q_depth and xeq_depth are u16,
the results of q_depth - 1 and xeq_depth - 1 are int rather than
u16. Use %d for int.

Signed-off-by: Zhushuai Yin <yinzhushuai@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/debugfs.c
drivers/crypto/hisilicon/sec2/sec_main.c