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.
Acked-by: Joe Stringer
@@ -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
