@@ -173,36 +173,36 @@ impl<const N: usize> Registrations<N> {
173
173
fds. set ( event_fd, Event :: Read ) ;
174
174
max = Some ( max. map_or ( event_fd, |max| max. max ( event_fd) ) ) ;
175
175
176
- debug ! ( "Set event FD: {event_fd}" ) ;
176
+ trace ! ( "Set event FD: {event_fd}" ) ;
177
177
}
178
178
179
179
for registration in & self . vec {
180
180
for event in EnumSet :: ALL {
181
181
if registration. wakers [ event as usize ] . is_some ( ) {
182
182
fds. set ( registration. fd , event) ;
183
183
184
- debug ! ( "Set registration FD: {}/{event:?}" , registration. fd) ;
184
+ trace ! ( "Set registration FD: {}/{event:?}" , registration. fd) ;
185
185
}
186
186
187
187
max = Some ( max. map_or ( registration. fd , |max| max. max ( registration. fd ) ) ) ;
188
188
}
189
189
}
190
190
191
- debug ! ( "Max FDs: {max:?}" ) ;
191
+ trace ! ( "Max FDs: {max:?}" ) ;
192
192
193
193
Ok ( max)
194
194
}
195
195
196
196
#[ allow( deprecated) ]
197
197
fn update_events ( & mut self , fds : & Fds ) -> io:: Result < ( ) > {
198
- debug ! ( "Updating events" ) ;
198
+ trace ! ( "Updating events" ) ;
199
199
200
200
self . consume_notification ( ) ?;
201
201
202
202
for registration in & mut self . vec {
203
203
for event in EnumSet :: ALL {
204
204
if fds. is_set ( registration. fd , event) {
205
- debug ! ( "Registration FD is set: {}/{event:?}" , registration. fd) ;
205
+ trace ! ( "Registration FD is set: {}/{event:?}" , registration. fd) ;
206
206
207
207
registration. events |= event;
208
208
if let Some ( waker) = registration. wakers [ event as usize ] . take ( ) {
@@ -300,7 +300,7 @@ impl<const N: usize> Registrations<N> {
300
300
)
301
301
} ) ?;
302
302
303
- debug ! ( "Consumed notification" ) ;
303
+ trace ! ( "Consumed notification" ) ;
304
304
305
305
Ok ( true )
306
306
} else {
@@ -395,7 +395,7 @@ impl<const N: usize> Reactor<N> {
395
395
Err ( err) => Err ( err) ,
396
396
Ok ( None ) => unreachable ! ( "EventFD is not there?" ) ,
397
397
Ok ( Some ( max) ) => {
398
- debug ! ( "Start select" ) ;
398
+ trace ! ( "Start select" ) ;
399
399
400
400
let result = syscall_los ! ( unsafe {
401
401
sys:: select(
@@ -407,7 +407,7 @@ impl<const N: usize> Reactor<N> {
407
407
)
408
408
} ) ;
409
409
410
- debug ! ( "End select" ) ;
410
+ trace ! ( "End select" ) ;
411
411
412
412
result. map ( |_| ( ) )
413
413
}
0 commit comments