summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-05-26 11:32:22 -0700
committerBen Pfaff <blp@ovn.org>2017-05-30 10:33:10 -0700
commit6ecf961e7ce82a932c9665d401c0ac636e73f33b (patch)
tree8d8477b785462c9e9f90374cd98dc1fc2f5a9491 /utilities
parentfce16ca1dd308a2c1987b1c5f0f5800ddb6e891b (diff)
downloadopenvswitch-6ecf961e7ce82a932c9665d401c0ac636e73f33b.tar.gz
checkpatch: Be more careful about checking function names.
This code would complain about the use of ovs_strerror because it matches [^x]strerror, and the same was true in many other similar cases. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Joe Stringer <joe@ovn.org>
Diffstat (limited to 'utilities')
-rwxr-xr-xutilities/checkpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index 443b8c048..751abd924 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -211,7 +211,7 @@ checks = [
def regex_function_factory(func_name):
- regex = re.compile('[^x]%s\([^)]*\)' % func_name)
+ regex = re.compile(r'\b%s\([^)]*\)' % func_name)
return lambda x: regex.search(x) is not None