Skip to content

Commit a4c8e1e

Browse files
committed
kernel: flush pending DebugOutV0 buffer bytes upon drop
1 parent 282074b commit a4c8e1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

oro-kernel/src/iface/root_ring/debug_out_v0.rs

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ impl Default for BufferState {
4747
}
4848
}
4949

50+
impl Drop for BufferState {
51+
fn drop(&mut self) {
52+
self.flush();
53+
}
54+
}
55+
5056
impl BufferState {
5157
/// Writes a single byte to the buffer.
5258
///

0 commit comments

Comments
 (0)