Skip to content

Commit cf590b8

Browse files
bjorn-helgaasdanvet
authored andcommitted
vgaarb: Downgrade userspace-triggerable messages to debug
To avoid userspace-triggerable dmesg spam, downgrade messages in the sysfs write parsing code to debug level. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20161118141158.32415.71438.stgit@bhelgaas-glaptop.roam.corp.google.com
1 parent a75d68f commit cf590b8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/gpu/vga/vgaarb.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,9 +1191,9 @@ static ssize_t vga_arb_write(struct file *file, const char __user *buf,
11911191
}
11921192
pdev = pci_get_domain_bus_and_slot(domain, bus, devfn);
11931193
if (!pdev) {
1194-
pr_err("invalid PCI address %04x:%02x:%02x.%x\n",
1195-
domain, bus, PCI_SLOT(devfn),
1196-
PCI_FUNC(devfn));
1194+
pr_debug("invalid PCI address %04x:%02x:%02x.%x\n",
1195+
domain, bus, PCI_SLOT(devfn),
1196+
PCI_FUNC(devfn));
11971197
ret_val = -ENODEV;
11981198
goto done;
11991199
}
@@ -1207,7 +1207,7 @@ static ssize_t vga_arb_write(struct file *file, const char __user *buf,
12071207
pr_debug("vgadev %p\n", vgadev);
12081208
if (vgadev == NULL) {
12091209
if (pdev) {
1210-
vgaarb_err(&pdev->dev, "not a VGA device\n");
1210+
vgaarb_dbg(&pdev->dev, "not a VGA device\n");
12111211
pci_dev_put(pdev);
12121212
}
12131213

@@ -1227,7 +1227,7 @@ static ssize_t vga_arb_write(struct file *file, const char __user *buf,
12271227
}
12281228
}
12291229
if (i == MAX_USER_CARDS) {
1230-
vgaarb_err(&pdev->dev, "maximum user cards (%d) number reached, ignoring this one!\n",
1230+
vgaarb_dbg(&pdev->dev, "maximum user cards (%d) number reached, ignoring this one!\n",
12311231
MAX_USER_CARDS);
12321232
pci_dev_put(pdev);
12331233
/* XXX: which value to return? */

0 commit comments

Comments
 (0)