From a75bc4f54cb4cf8642c2a0dbdf622979ce2444a2 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 29 Jan 2023 21:27:14 +0800 Subject: [PATCH] kernel: minor formatting cleanups These files have had rustfmt run on them. Signed-off-by: Sean Cross --- kernel/src/arch/riscv/irq.rs | 2 +- kernel/src/services.rs | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/kernel/src/arch/riscv/irq.rs b/kernel/src/arch/riscv/irq.rs index 23bbccfa7..a0b8d8ca7 100644 --- a/kernel/src/arch/riscv/irq.rs +++ b/kernel/src/arch/riscv/irq.rs @@ -45,7 +45,7 @@ pub unsafe fn set_isr_return_pair(pid: PID, tid: TID) { PREVIOUS_PAIR = Some((pid, tid)); } -#[cfg(feature="gdb-stub")] +#[cfg(feature = "gdb-stub")] pub unsafe fn take_isr_return_pair() -> Option<(PID, TID)> { PREVIOUS_PAIR.take() } diff --git a/kernel/src/services.rs b/kernel/src/services.rs index 5e0e565a1..659998167 100644 --- a/kernel/src/services.rs +++ b/kernel/src/services.rs @@ -433,7 +433,11 @@ impl SystemServices { entry.state = ProcessState::Ready(1 << INITIAL_TID); } // entry.ppid = _ppid; - klog!("created new process for PID {} with PPID {}", new_pid, _ppid); + klog!( + "created new process for PID {} with PPID {}", + new_pid, + _ppid + ); return Ok(startup); } @@ -1570,7 +1574,6 @@ impl SystemServices { other ), }; - // log_process_update(file!(), line!(), process, old_state); Ok(new_tid) } @@ -2120,7 +2123,7 @@ impl SystemServices { Ok(parent_pid) } - #[cfg(feature="gdb-stub")] + #[cfg(feature = "gdb-stub")] pub fn suspend_process(&mut self, pid: PID) -> Result<(), xous_kernel::Error> { let (process_state, parent_pid) = { let process = self.get_process_mut(pid)?; @@ -2174,7 +2177,7 @@ impl SystemServices { Ok(()) } - #[cfg(feature="gdb-stub")] + #[cfg(feature = "gdb-stub")] pub fn continue_process(&mut self, pid: PID) -> Result<(), xous_kernel::Error> { let process = self.get_process_mut(pid)?; // let old_state = process.state;