diff options
-rw-r--r-- | coccinelle/errno.cocci | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/coccinelle/errno.cocci b/coccinelle/errno.cocci index ed74c0a98a..c928266481 100644 --- a/coccinelle/errno.cocci +++ b/coccinelle/errno.cocci @@ -30,3 +30,12 @@ expression e; + return log_LEVEL_errno(e, ...); - return -e; +@@ +identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$"; +expression list args; +expression e; +local idexpression r; +@@ +- log_LEVEL_errno(e, args); +- r = e; ++ r = log_LEVEL_errno(e, args); |