Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 -1
+1 -1
drivers/pci/vgaarb.c
··· 1156 1156 1157 1157 /* Fill the buffer with infos */ 1158 1158 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", 1160 1160 vga_decode_count, pci_name(pdev), 1161 1161 vga_iostate_to_str(vgadev->decodes), 1162 1162 vga_iostate_to_str(vgadev->owns),