aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYixing Liu <liuyixing1@huawei.com>2021-03-31 16:18:28 +0800
committerDavid S. Miller <davem@davemloft.net>2021-03-31 14:34:08 -0700
commitb788ff0a7d7dc04da4c938d56cbe96c7fa261983 (patch)
tree717a5da4d0aa22f6639e22e276ec7f29ab03fcb3
parentqrtr: Convert qrtr_ports from IDR to XArray (diff)
downloadlinux-dev-b788ff0a7d7dc04da4c938d56cbe96c7fa261983.tar.xz
linux-dev-b788ff0a7d7dc04da4c938d56cbe96c7fa261983.zip
net: ena: fix inaccurate print type
Use "%u" to replace "hu%". Signed-off-by: Yixing Liu <liuyixing1@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/amazon/ena/ena_com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_com.c b/drivers/net/ethernet/amazon/ena/ena_com.c
index 02087d443e73..764852ead1d6 100644
--- a/drivers/net/ethernet/amazon/ena/ena_com.c
+++ b/drivers/net/ethernet/amazon/ena/ena_com.c
@@ -863,7 +863,7 @@ static u32 ena_com_reg_bar_read32(struct ena_com_dev *ena_dev, u16 offset)
if (unlikely(i == timeout)) {
netdev_err(ena_dev->net_device,
- "Reading reg failed for timeout. expected: req id[%hu] offset[%hu] actual: req id[%hu] offset[%hu]\n",
+ "Reading reg failed for timeout. expected: req id[%u] offset[%u] actual: req id[%u] offset[%u]\n",
mmio_read->seq_num, offset, read_resp->req_id,
read_resp->reg_off);
ret = ENA_MMIO_READ_TIMEOUT;
@@ -2396,7 +2396,7 @@ int ena_com_fill_hash_function(struct ena_com_dev *ena_dev,
if (key) {
if (key_len != sizeof(hash_key->key)) {
netdev_err(ena_dev->net_device,
- "key len (%hu) doesn't equal the supported size (%zu)\n",
+ "key len (%u) doesn't equal the supported size (%zu)\n",
key_len, sizeof(hash_key->key));
return -EINVAL;
}