Commit 4cf0806e authored by Weili Qian's avatar Weili Qian Committed by Herbert Xu

crypto: hisilicon/qm - fix printing format issue

This patch fixes inconsistent of printing format with argument type.
Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
Reviewed-by: default avatarZaibo Xu <xuzaibo@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1db0016e
...@@ -725,7 +725,7 @@ static irqreturn_t qm_aeq_irq(int irq, void *data) ...@@ -725,7 +725,7 @@ static irqreturn_t qm_aeq_irq(int irq, void *data)
dev_err(&qm->pdev->dev, "%s overflow\n", dev_err(&qm->pdev->dev, "%s overflow\n",
qm_fifo_overflow[type]); qm_fifo_overflow[type]);
else else
dev_err(&qm->pdev->dev, "unknown error type %d\n", dev_err(&qm->pdev->dev, "unknown error type %u\n",
type); type);
if (qm->status.aeq_head == QM_Q_DEPTH - 1) { if (qm->status.aeq_head == QM_Q_DEPTH - 1) {
...@@ -1129,7 +1129,7 @@ static int dump_show(struct hisi_qm *qm, void *info, ...@@ -1129,7 +1129,7 @@ static int dump_show(struct hisi_qm *qm, void *info,
dev_info(dev, "%s DUMP\n", info_name); dev_info(dev, "%s DUMP\n", info_name);
for (i = 0; i < info_size; i += BYTE_PER_DW) { for (i = 0; i < info_size; i += BYTE_PER_DW) {
pr_info("DW%d: %02X%02X %02X%02X\n", i / BYTE_PER_DW, pr_info("DW%u: %02X%02X %02X%02X\n", i / BYTE_PER_DW,
info_buf[i], info_buf[i + 1UL], info_buf[i], info_buf[i + 1UL],
info_buf[i + 2UL], info_buf[i + 3UL]); info_buf[i + 2UL], info_buf[i + 3UL]);
} }
...@@ -1162,7 +1162,7 @@ static int qm_sqc_dump(struct hisi_qm *qm, const char *s) ...@@ -1162,7 +1162,7 @@ static int qm_sqc_dump(struct hisi_qm *qm, const char *s)
ret = kstrtou32(s, 0, &qp_id); ret = kstrtou32(s, 0, &qp_id);
if (ret || qp_id >= qm->qp_num) { if (ret || qp_id >= qm->qp_num) {
dev_err(dev, "Please input qp num (0-%d)", qm->qp_num - 1); dev_err(dev, "Please input qp num (0-%u)", qm->qp_num - 1);
return -EINVAL; return -EINVAL;
} }
...@@ -1208,7 +1208,7 @@ static int qm_cqc_dump(struct hisi_qm *qm, const char *s) ...@@ -1208,7 +1208,7 @@ static int qm_cqc_dump(struct hisi_qm *qm, const char *s)
ret = kstrtou32(s, 0, &qp_id); ret = kstrtou32(s, 0, &qp_id);
if (ret || qp_id >= qm->qp_num) { if (ret || qp_id >= qm->qp_num) {
dev_err(dev, "Please input qp num (0-%d)", qm->qp_num - 1); dev_err(dev, "Please input qp num (0-%u)", qm->qp_num - 1);
return -EINVAL; return -EINVAL;
} }
...@@ -1287,7 +1287,7 @@ static int q_dump_param_parse(struct hisi_qm *qm, char *s, ...@@ -1287,7 +1287,7 @@ static int q_dump_param_parse(struct hisi_qm *qm, char *s,
ret = kstrtou32(presult, 0, q_id); ret = kstrtou32(presult, 0, q_id);
if (ret || *q_id >= qp_num) { if (ret || *q_id >= qp_num) {
dev_err(dev, "Please input qp num (0-%d)", qp_num - 1); dev_err(dev, "Please input qp num (0-%u)", qp_num - 1);
return -EINVAL; return -EINVAL;
} }
...@@ -2729,7 +2729,7 @@ int hisi_qm_start(struct hisi_qm *qm) ...@@ -2729,7 +2729,7 @@ int hisi_qm_start(struct hisi_qm *qm)
return -EPERM; return -EPERM;
} }
dev_dbg(dev, "qm start with %d queue pairs\n", qm->qp_num); dev_dbg(dev, "qm start with %u queue pairs\n", qm->qp_num);
if (!qm->qp_num) { if (!qm->qp_num) {
dev_err(dev, "qp_num should not be 0\n"); dev_err(dev, "qp_num should not be 0\n");
...@@ -3164,7 +3164,7 @@ int hisi_qm_alloc_qps_node(struct hisi_qm_list *qm_list, int qp_num, ...@@ -3164,7 +3164,7 @@ int hisi_qm_alloc_qps_node(struct hisi_qm_list *qm_list, int qp_num,
mutex_unlock(&qm_list->lock); mutex_unlock(&qm_list->lock);
if (ret) if (ret)
pr_info("Failed to create qps, node[%d], alg[%d], qp[%d]!\n", pr_info("Failed to create qps, node[%d], alg[%u], qp[%d]!\n",
node, alg_type, qp_num); node, alg_type, qp_num);
err: err:
...@@ -3372,7 +3372,7 @@ pci_ers_result_t hisi_qm_dev_err_detected(struct pci_dev *pdev, ...@@ -3372,7 +3372,7 @@ pci_ers_result_t hisi_qm_dev_err_detected(struct pci_dev *pdev,
if (pdev->is_virtfn) if (pdev->is_virtfn)
return PCI_ERS_RESULT_NONE; return PCI_ERS_RESULT_NONE;
pci_info(pdev, "PCI error detected, state(=%d)!!\n", state); pci_info(pdev, "PCI error detected, state(=%u)!!\n", state);
if (state == pci_channel_io_perm_failure) if (state == pci_channel_io_perm_failure)
return PCI_ERS_RESULT_DISCONNECT; return PCI_ERS_RESULT_DISCONNECT;
......
...@@ -307,7 +307,7 @@ static inline int q_num_set(const char *val, const struct kernel_param *kp, ...@@ -307,7 +307,7 @@ static inline int q_num_set(const char *val, const struct kernel_param *kp,
if (!pdev) { if (!pdev) {
q_num = min_t(u32, QM_QNUM_V1, QM_QNUM_V2); q_num = min_t(u32, QM_QNUM_V1, QM_QNUM_V2);
pr_info("No device found currently, suppose queue number is %d\n", pr_info("No device found currently, suppose queue number is %u\n",
q_num); q_num);
} else { } else {
if (pdev->revision == QM_HW_V1) if (pdev->revision == QM_HW_V1)
......
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