Commit a20ea703 authored by Harald Sitter's avatar Harald Sitter 🌹
Browse files

strip non printable characters from opengl dri info

Summary:
previously this was incorrectly indented

was
| Vendor | \s\s\s\s\s\s\s\sFoobar |

is now
| Vendor | Foobar                 |

Test Plan: with D27980 applied the kernel module doesn't stick out anymore as now all strings are uniformly simplified and have no unexpected indentation

Reviewers: apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27981
parent 72a09a3f
......@@ -259,10 +259,10 @@ static QVector<DriInfo> get_dri_devices()
line = pci_info[i];
line.remove(QRegExp("[^:]*:[ ]*"));
switch (i) {
case 2: it->vendor = line; break;
case 3: it->device = line; break;
case 4: it->subvendor = line; break;
case 6: it->rev = line; break;
case 2: it->vendor = line.simplified(); break;
case 3: it->device = line.simplified(); break;
case 4: it->subvendor = line.simplified(); break;
case 6: it->rev = line.simplified(); break;
}
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment