[ovs-dev] [PATCH 1/2] checkpatch: Suggest ovs_assert() to author.
Bhanuprakash Bodireddy
bhanuprakash.bodireddy at intel.com
Sun Jun 18 20:48:09 UTC 2017
Suggest the author to use the OVS wrapper of the assert function.
Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
---
utilities/checkpatch.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index b45a255..304d2fd 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -256,6 +256,7 @@ std_functions = [
('strerror', 'Use ovs_strerror() in place of strerror()'),
('sleep', 'Use xsleep() in place of sleep()'),
('abort', 'Use ovs_abort() in place of abort()'),
+ ('assert', 'Use ovs_assert() in place of assert()'),
('error', 'Use ovs_error() in place of error()'),
]
checks += [
--
2.4.11
More information about the dev
mailing list