Print this page
10805 Fix for 10687 can be improved
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/sys/ib/clients/rds/rdsib_debug.h
+++ new/usr/src/uts/common/sys/ib/clients/rds/rdsib_debug.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 26 /*
27 27 * Copyright 2019, Joyent, Inc.
28 28 */
29 29
30 30 #ifndef _RDSIB_DEBUG_H
31 31 #define _RDSIB_DEBUG_H
32 32
33 33 #ifdef __cplusplus
34 34 extern "C" {
35 35 #endif
36 36
37 37 #define LABEL "RDS"
38 38
39 39 /*
40 40 * warnings, console & syslog buffer.
41 41 * For Non recoverable or Major Errors
42 42 */
43 43 #define RDS_LOG_L0 0
44 44
45 45 /*
46 46 * syslog buffer or RDS trace buffer (console if booted /w debug)
47 47 * For additional information on Non recoverable errors and
48 48 * warnings/informational message for sys-admin types.
49 49 */
50 50 #define RDS_LOG_L1 1
51 51
52 52 /*
53 53 * debug only
54 54 * for more verbose trace than L1, for e.g. recoverable errors,
55 55 * or intersting trace
56 56 */
57 57 #define RDS_LOG_L2 2
58 58
59 59 /*
60 60 * debug only
61 61 * for more verbose trace than L2, for e.g. informational messages
62 62 */
63 63 #define RDS_LOG_L3 3
64 64
65 65 /*
66 66 * debug only
67 67 * for more verbose trace than L3, for e.g. printing function entries...
68 68 */
69 69 #define RDS_LOG_L4 4
70 70
71 71 /*
72 72 * debug only
73 73 * most verbose level. Used only for excessive trace, for e.g.
74 74 * printing structures etc.
75 75 */
76 76 #define RDS_LOG_L5 5
77 77
78 78 /*
79 79 * debug only
80 80 * for messages from softints, taskqs, intr handlers, timeout handlers etc.
81 81 */
82 82 #define RDS_LOG_LINTR 6
83 83
84 84
85 85 #ifdef DEBUG
86 86 #define RDS_DPRINTF_INTR rds_dprintf_intr
87 87 #define RDS_DPRINTF5 rds_dprintf5
88 88 #define RDS_DPRINTF4 rds_dprintf4
89 89 #define RDS_DPRINTF3 rds_dprintf3
90 90
91 91 void rds_dprintf_intr(
92 92 char *name,
93 93 char *fmt, ...);
↓ open down ↓ |
93 lines elided |
↑ open up ↑ |
94 94 void rds_dprintf5(
95 95 char *name,
96 96 char *fmt, ...);
97 97 void rds_dprintf4(
98 98 char *name,
99 99 char *fmt, ...);
100 100 void rds_dprintf3(
101 101 char *name,
102 102 char *fmt, ...);
103 103 #else
104 -#define RDS_DPRINTF_INTR(...)
105 -#define RDS_DPRINTF5(...)
106 -#define RDS_DPRINTF4(...)
107 -#define RDS_DPRINTF3(...)
104 +#define RDS_DPRINTF_INTR(...) (void)(0)
105 +#define RDS_DPRINTF5(...) (void)(0)
106 +#define RDS_DPRINTF4(...) (void)(0)
107 +#define RDS_DPRINTF3(...) (void)(0)
108 108 #endif
109 109
110 110 #define RDS_DPRINTF2 rds_dprintf2
111 111 #define RDS_DPRINTF1 rds_dprintf1
112 112 #define RDS_DPRINTF0 rds_dprintf0
113 113
114 114 void rds_dprintf2(
115 115 char *name,
116 116 char *fmt, ...);
117 117 void rds_dprintf1(
118 118 char *name,
119 119 char *fmt, ...);
120 120 void rds_dprintf0(
121 121 char *name,
122 122 char *fmt, ...);
123 123
124 124 #ifdef __cplusplus
125 125 }
126 126 #endif
127 127
128 128 #endif /* _RDSIB_DEBUG_H */
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX