summaryrefslogtreecommitdiff
path: root/coccinelle/errno.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'coccinelle/errno.cocci')
-rw-r--r--coccinelle/errno.cocci7
1 files changed, 7 insertions, 0 deletions
diff --git a/coccinelle/errno.cocci b/coccinelle/errno.cocci
index 0b14d22438..ed74c0a98a 100644
--- a/coccinelle/errno.cocci
+++ b/coccinelle/errno.cocci
@@ -23,3 +23,10 @@ expression e;
+ return
log_LEVEL_errno(e, ...);
- return r;
+@@
+identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$";
+expression e;
+@@
++ return
+ log_LEVEL_errno(e, ...);
+- return -e;