(&mut self, s: &str)
| 170 | |
| 171 | impl fmt::Write for Writer { |
| 172 | fn write_str(&mut self, s: &str) -> ::core::fmt::Result { |
| 173 | for byte in s.bytes() { |
| 174 | self.write_byte(byte) |
| 175 | } |
| 176 | |
| 177 | // If the console is enable, also print out to the console |
| 178 | if COM1.lock().is_enable() { |
| 179 | COM1.lock().write_str(s); |
| 180 | } |
| 181 | |
| 182 | Ok(()) |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | extern "C" fn panic_fmt(_: ::core::fmt::Arguments, _: &'static str, _: u32) -> ! { |
nothing calls this directly
no test coverage detected