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 <nicola.vetrini@bugseng.com> [stefano: fix commit message] Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
1 parent 841f437 commit 96af090

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)