diff options
| author | Fenrir <[email protected]> | 2017-01-27 17:22:02 -0700 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2017-01-27 17:22:02 -0700 |
| commit | 2719d9488ff8db5006a26172895a426ba4d35d3c (patch) | |
| tree | 28ff6bc98bf88315e8c72a47770ce9d5d2fb426c /ctr-std | |
| parent | ctru-rs: impl Read and Write for File (diff) | |
| download | archived-ctru-rs-2719d9488ff8db5006a26172895a426ba4d35d3c.tar.xz archived-ctru-rs-2719d9488ff8db5006a26172895a426ba4d35d3c.zip | |
ctr-std: Fix panic message formatting
Diffstat (limited to 'ctr-std')
| -rw-r--r-- | ctr-std/src/panicking.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctr-std/src/panicking.rs b/ctr-std/src/panicking.rs index 2b5a178..d6b922d 100644 --- a/ctr-std/src/panicking.rs +++ b/ctr-std/src/panicking.rs @@ -50,10 +50,10 @@ pub fn begin_panic<M: Any + Send + Display>(msg: M, file_line: &(&'static str, u let msg = Box::new(msg); let (file, line) = *file_line; - println!("--------------------------------------------------"); + print!("--------------------------------------------------"); println!("PANIC in {} at line {}:", file, line); println!(" {}", msg); - println!("\x1b[29;00H--------------------------------------------------"); + print!("\x1b[29;00H--------------------------------------------------"); loop {} } |