summaryrefslogtreecommitdiff
path: root/bin
diff options
authorPo-Hsu Lin <po-hsu.lin@canonical.com>2015-12-11 11:45:44 +0800
committerPo-Hsu Lin <po-hsu.lin@canonical.com>2015-12-11 11:45:44 +0800
commit706f5549f10c5ab1b855abbcb7fd61f34c8fcfdd (patch)
treef9461a67399c72bc2cd5fe2e49f4abf46940548a /bin
parent55e23afec2b49c86a367e47a3b64ae2d999f4267 (diff)
provider:checkbox make the regex looks more consistent
Diffstat (limited to 'bin')
-rwxr-xr-xbin/graphics_driver5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/graphics_driver b/bin/graphics_driver
index bf956e8..e1b6abd 100755
--- a/bin/graphics_driver
+++ b/bin/graphics_driver
@@ -128,8 +128,9 @@ class XorgLog(object):
self.modules.append(module)
gathering_module = False
module = None
- if re.search(
- '\(II\) Loading.*modules\/drivers\/(.+)_drv\.so', line):
+ m = re.search(
+ '\(II\) Loading.*modules\/drivers\/(.+)_drv\.so', line)
+ if m:
found_ddx = True
continue
m = re.search(r'\(II\) Module (\w+):', line)