diff options
author | Ben Pfaff <blp@ovn.org> | 2017-05-26 11:32:22 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-05-30 10:33:10 -0700 |
commit | 6ecf961e7ce82a932c9665d401c0ac636e73f33b (patch) | |
tree | 8d8477b785462c9e9f90374cd98dc1fc2f5a9491 /utilities | |
parent | fce16ca1dd308a2c1987b1c5f0f5800ddb6e891b (diff) | |
download | openvswitch-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-x | utilities/checkpatch.py | 2 |
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 |