projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e6c918
)
PCI/VGA: Use unsigned format string to print lock counts
author
Bjorn Helgaas
<bhelgaas@google.com>
Thu, 24 Feb 2022 22:47:52 +0000
(16:47 -0600)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Thu, 10 Mar 2022 00:31:32 +0000
(18:31 -0600)
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>
drivers/pci/vgaarb.c
patch
|
blob
|
history
diff --git
a/drivers/pci/vgaarb.c
b/drivers/pci/vgaarb.c
index
7b1bfde
..
d6e77c6
100644
(file)
--- 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),