Skip to content

Commit 96af090

Browse files
nvetrinisstabellini
authored andcommitted
automation/eclair_analysis: avoid an ECLAIR warning about escaping
The parentheses in this regular expression should be doubly escaped because they undergo expansion twice. Signed-off-by: Nicola Vetrini <[email protected]> [stefano: fix commit message] Signed-off-by: Stefano Stabellini <[email protected]> Acked-by: Stefano Stabellini <[email protected]>
1 parent 841f437 commit 96af090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

automation/eclair_analysis/ECLAIR/deviations.ecl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ explicit comment indicating the fallthrough intention is present."
405405
#
406406

407407
-doc_begin="printf()-like functions are allowed to use the variadic features provided by stdarg.h."
408-
-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(^.*printk\(.*\)$)))"}
409-
-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(^.*printf\(.*\)$)))"}
408+
-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(^.*printk\\(.*\\)$)))"}
409+
-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(^.*printf\\(.*\\)$)))"}
410410
-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(name(panic)&&kind(function))))"}
411411
-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(name(elf_call_log_callback)&&kind(function))))"}
412412
-config=MC3R1.R17.1,reports+={deliberate,"any_area(^.*va_list.*$&&context(ancestor_or_self(name(vprintk_common)&&kind(function))))"}

0 commit comments

Comments
 (0)