summaryrefslogtreecommitdiff
path: root/docs/log-message-tags/find-messages.cocci
blob: 436302901d5ead15b83f9ef3838cfd0356fff5d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@r1@
expression rv, s;
constant char[] fmt !~ "^APLOGNO";
identifier level =~ "^APLOG_(EMERG|ALERT|CRIT|ERR|WARNING|NOTICE|INFO|STARTUP|DEBUG)$";
identifier fn =~ "^ap_log_(|r|c|p)error$";

@@
        fn( APLOG_MARK ,
(
        level
|
        level|APLOG_NOERRNO
|
        level|APLOG_STARTUP
)
        ,rv, s
+       , APLOGNO()
        ,fmt, ...)

@r2@
expression rv, s, c;
constant char[] fmt !~ "^APLOGNO";
identifier level =~ "^APLOG_(EMERG|ALERT|CRIT|ERR|WARNING|NOTICE|INFO|STARTUP|DEBUG)$";

@@
        ap_log_cserror( APLOG_MARK ,
(
        level
|
        level|APLOG_NOERRNO
|
        level|APLOG_STARTUP
)
        ,rv, s, c
+       , APLOGNO()
        ,fmt, ...)

@r3@
expression rv, p, s, cert;
constant char[] fmt !~ "^APLOGNO";
identifier level =~ "^APLOG_(EMERG|ALERT|CRIT|ERR|WARNING|NOTICE|INFO|STARTUP|DEBUG)$";

@@
        ssl_log_xerror( SSLLOG_MARK ,
(
        level
|
        level|APLOG_NOERRNO
|
        level|APLOG_STARTUP
)
        ,rv, p, s , cert
+       , APLOGNO()
        ,fmt, ...)

@r4@
expression rv, rc, cert;
constant char[] fmt !~ "^APLOGNO";
identifier level =~ "^APLOG_(EMERG|ALERT|CRIT|ERR|WARNING|NOTICE|INFO|STARTUP|DEBUG)$";
identifier fn =~ "^ssl_log_(r|c)xerror$";

@@
        fn( SSLLOG_MARK ,
(
        level
|
        level|APLOG_NOERRNO
|
        level|APLOG_STARTUP
)
        ,rv, rc , cert
+       , APLOGNO()
        ,fmt, ...)