summaryrefslogtreecommitdiff
path: root/drivers/pci/vgaarb.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2022-02-24 16:47:52 -0600
committerBjorn Helgaas <bhelgaas@google.com>2022-03-09 18:31:32 -0600
commitd5109fe4d1ecba04d3f6903ab0421188d1420d22 (patch)
tree6a6a6381cd0c7a908bad93272be50c82c3572e26 /drivers/pci/vgaarb.c
parent4e6c91847a7fa94a6a0caeeb388718b8ae005d56 (diff)
PCI/VGA: Use unsigned format string to print lock counts
In struct vga_device, io_lock_cnt and mem_lock_cnt are unsigned, but we previously printed them with "%d", the signed decimal format. Print them with the unsigned format "%u" instead. Link: https://lore.kernel.org/r/20220224224753.297579-11-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/vgaarb.c')
-rw-r--r--drivers/pci/vgaarb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/vgaarb.c b/drivers/pci/vgaarb.c
index 7b1bfdea9d10..d6e77c6a9a1a 100644
--- a/drivers/pci/vgaarb.c
+++ b/drivers/pci/vgaarb.c
@@ -1156,7 +1156,7 @@ static ssize_t vga_arb_read(struct file *file, char __user *buf,
/* Fill the buffer with infos */
len = snprintf(lbuf, 1024,
- "count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%d:%d)\n",
+ "count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%u:%u)\n",
vga_decode_count, pci_name(pdev),
vga_iostate_to_str(vgadev->decodes),
vga_iostate_to_str(vgadev->owns),