summaryrefslogtreecommitdiff
path: root/XOrg
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-07-30 11:02:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-02 15:09:33 +1000
commit24229d3420f67a815139a2905969770274ca024e (patch)
tree9da9645705e7ec2b8b2ad734d5c0796e69c4d290 /XOrg
parentc08a6259597b1750964864a36ffae7e9d810201b (diff)
XOrg: don't use $foo->bar substitution in regex.
There's probably a way to do this directly, but meanwhile use the match $1 to compare afterwards. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XOrg')
-rwxr-xr-xXOrg/xorglog.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/XOrg/xorglog.pm b/XOrg/xorglog.pm
index eb287a3..1d072fc 100755
--- a/XOrg/xorglog.pm
+++ b/XOrg/xorglog.pm
@@ -216,8 +216,8 @@ sub _parse_input_drivers {
$dev->add_option($1, $2);
} elsif ($_ =~ m|$time_regex \(II\) No input driver/identifier specified \(ignoring\)|) {
$dev->present(0);
- } elsif ($_ =~ /$time_regex \(EE\) PreInit returned \d+ for "$dev->name"/) {
- $dev->present(0);
+ } elsif ($_ =~ /$time_regex \(EE\) PreInit returned \d+ for "(.*)"/) {
+ $dev->present(0) if ($dev->name eq $1);
}
}
}