diff options
author | 2024-11-06 19:14:58 +0800 | |
---|---|---|
committer | 2024-11-06 06:54:46 -0600 | |
commit | 7868b3a94045a6c45b7dfb03945c195106bc77df (patch) | |
tree | a79e8feee35841ddd59301ef2698017e92a15122 | |
parent | ipmi: ipmb: Add check devm_kasprintf() returned value (diff) | |
download | wireguard-linux-7868b3a94045a6c45b7dfb03945c195106bc77df.tar.xz wireguard-linux-7868b3a94045a6c45b7dfb03945c195106bc77df.zip |
char:ipmi: Fix the wrong format specifier
Because the types of io.regsize and io.regspacing in the ipmipci_probe
function are unsigned int, they should be output in the %u format.
Signed-off-by: liujing <liujing@cmss.chinamobile.com>
Message-ID: <20241106111458.2157-1-liujing@cmss.chinamobile.com>
Signed-off-by: Corey Minyard <corey@minyard.net>
-rw-r--r-- | drivers/char/ipmi/ipmi_si_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_pci.c b/drivers/char/ipmi/ipmi_si_pci.c index b83d55685b22..8c0ea637aba0 100644 --- a/drivers/char/ipmi/ipmi_si_pci.c +++ b/drivers/char/ipmi/ipmi_si_pci.c @@ -118,7 +118,7 @@ static int ipmi_pci_probe(struct pci_dev *pdev, if (io.irq) io.irq_setup = ipmi_std_irq_setup; - dev_info(&pdev->dev, "%pR regsize %d spacing %d irq %d\n", + dev_info(&pdev->dev, "%pR regsize %u spacing %u irq %d\n", &pdev->resource[0], io.regsize, io.regspacing, io.irq); return ipmi_si_add_smi(&io); |