Skip to content

Commit d5109fe

Browse files
committed
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>
1 parent 4e6c918 commit d5109fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/vgaarb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ static ssize_t vga_arb_read(struct file *file, char __user *buf,
11561156

11571157
/* Fill the buffer with infos */
11581158
len = snprintf(lbuf, 1024,
1159-
"count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%d:%d)\n",
1159+
"count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%u:%u)\n",
11601160
vga_decode_count, pci_name(pdev),
11611161
vga_iostate_to_str(vgadev->decodes),
11621162
vga_iostate_to_str(vgadev->owns),

0 commit comments

Comments
 (0)