Add the concept of a "console usage", such as "standard output" or "debug messages". Allow usages to be associated with each console independently. For example, to send debugging output via the serial port, while preventing it from appearing on the local console: #define CONSOLE_SERIAL CONSOLE_USAGE_ALL #define CONSOLE_PCBIOS ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_DEBUG ) If no usages are explicitly specified, then a default set of usages will be applied. For example: #define CONSOLE_SERIAL will have the same affect as #define CONSOLE_SERIAL CONSOLE_USAGE_ALL Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
11 | 11 |
|
12 | 12 |
|
13 | 13 |
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
14 | 22 |
|
15 | 23 |
|
16 | 24 |
|
|
||
97 | 105 |
|
98 | 106 |
|
99 | 107 |
|
108 |
|
|
100 | 109 |
|
101 | 110 |
|
102 | 111 |
|
|
||
23 | 23 |
|
24 | 24 |
|
25 | 25 |
|
26 |
|
|
26 | 27 |
|
27 | 28 |
|
28 | 29 |
|
|
||
48 | 49 |
|
49 | 50 |
|
50 | 51 |
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
51 | 58 |
|
52 | 59 |
|
53 | 60 |
|
|
||
319 | 326 |
|
320 | 327 |
|
321 | 328 |
|
329 |
|
|
322 | 330 |
|
|
||
29 | 29 |
|
30 | 30 |
|
31 | 31 |
|
32 |
|
|
32 | 33 |
|
33 | 34 |
|
34 | 35 |
|
35 | 36 |
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
36 | 43 |
|
37 | 44 |
|
38 | 45 |
|
|
||
87 | 94 |
|
88 | 95 |
|
89 | 96 |
|
97 |
|
|
90 | 98 |
|
91 | 99 |
|
92 | 100 |
|
|
||
7 | 7 |
|
8 | 8 |
|
9 | 9 |
|
10 |
|
|
11 |
|
|
12 |
|
|
10 | 13 |
|
11 | 14 |
|
12 | 15 |
|
|
||
26 | 29 |
|
27 | 30 |
|
28 | 31 |
|
29 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
30 | 35 |
|
31 | 36 |
|
32 | 37 |
|
|
||
21 | 21 |
|
22 | 22 |
|
23 | 23 |
|
24 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
25 | 47 |
|
26 | 48 |
|
27 | 49 |
|
28 | 50 |
|
29 | 51 |
|
30 | 52 |
|
31 |
|
|
53 |
|
|
32 | 54 |
|
33 |
|
|
55 |
|
|
34 | 56 |
|
35 | 57 |
|
36 | 58 |
|
|
||
38 | 60 |
|
39 | 61 |
|
40 | 62 |
|
41 |
|
|
63 |
|
|
42 | 64 |
|
43 |
|
|
65 |
|
|
44 | 66 |
|
45 | 67 |
|
46 | 68 |
|
|
||
57 | 79 |
|
58 | 80 |
|
59 | 81 |
|
60 |
|
|
82 |
|
|
61 | 83 |
|
62 | 84 |
|
63 |
|
|
85 |
|
|
64 | 86 |
|
65 | 87 |
|
66 |
|
|
67 |
|
|
88 |
|
|
89 |
|
|
68 | 90 |
|
69 |
|
|
91 |
|
|
70 | 92 |
|
71 | 93 |
|
72 |
|
|
94 |
|
|
73 | 95 |
|
74 | 96 |
|
75 | 97 |
|
76 | 98 |
|
77 | 99 |
|
78 |
|
|
100 |
|
|
79 | 101 |
|
80 |
|
|
102 |
|
|
81 | 103 |
|
82 | 104 |
|
83 | 105 |
|
|
||
157 | 179 |
|
158 | 180 |
|
159 | 181 |
|
160 |
|
|
161 |
|
|
182 |
|
|
183 |
|
|
162 | 184 |
|
163 | 185 |
|
164 | 186 |
|
|
||
166 | 188 |
|
167 | 189 |
|
168 | 190 |
|
169 |
|
|
191 |
|
|
170 | 192 |
|
|
||
1 | 1 |
|
2 | 2 |
|
3 | 3 |
|
4 |
|
|
4 | 5 |
|
5 | 6 |
|
6 | 7 |
|
|
||
8 | 9 |
|
9 | 10 |
|
10 | 11 |
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
11 | 18 |
|
12 | 19 |
|
13 | 20 |
|
|
||
21 | 28 |
|
22 | 29 |
|
23 | 30 |
|
31 |
|
|
24 | 32 |
|
25 | 33 |
|
26 | 34 |
|
|
||
260 | 260 |
|
261 | 261 |
|
262 | 262 |
|
263 |
|
|
264 |
|
|
265 |
|
|
266 |
|
|
267 |
|
|
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
|
273 |
|
|
274 |
|
|
275 |
|
|
263 |
|
|
264 |
|
|
265 |
|
|
276 | 266 |
|
277 | 267 |
|
278 | 268 |
|
|
||
75 | 75 |
|
76 | 76 |
|
77 | 77 |
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
78 | 85 |
|
79 | 86 |
|
80 | 87 |
|
|
||
99 | 106 |
|
100 | 107 |
|
101 | 108 |
|
102 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
103 | 152 |
|
104 | 153 |
|
105 | 154 |
|
|
||
23 | 23 |
|
24 | 24 |
|
25 | 25 |
|
26 |
|
|
26 | 27 |
|
27 | 28 |
|
28 | 29 |
|
|
||
48 | 49 |
|
49 | 50 |
|
50 | 51 |
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
51 | 58 |
|
52 | 59 |
|
53 | 60 |
|
|
||
273 | 280 |
|
274 | 281 |
|
275 | 282 |
|
283 |
|
|
276 | 284 |
|
|
||
33 | 33 |
|
34 | 34 |
|
35 | 35 |
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
36 | 44 |
|
37 | 45 |
|
38 | 46 |
|
|
||
79 | 87 |
|
80 | 88 |
|
81 | 89 |
|
90 |
|
|
82 | 91 |
|
83 | 92 |
|
84 | 93 |
|
|
||
34 | 34 |
|
35 | 35 |
|
36 | 36 |
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
37 | 44 |
|
38 | 45 |
|
39 | 46 |
|
|
||
106 | 113 |
|
107 | 114 |
|
108 | 115 |
|
116 |
|
|
109 | 117 |
|
110 | 118 |
|
111 | 119 |
|