Skip to content

Commit eb7255d

Browse files
fix build
Signed-off-by: Andy-Python-Programmer <[email protected]>
1 parent 7e43892 commit eb7255d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/aero_kernel/src/syscall/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ pub fn generic_do_syscall(
211211

212212
#[cfg(feature = "syslog")]
213213
{
214-
use crate::drivers::uart_16550;
215214
use alloc::string::String;
216215

217216
let name = aero_syscall::syscall_as_str(a);
@@ -242,7 +241,7 @@ pub fn generic_do_syscall(
242241
let result_str = alloc::format!("{:?}", result);
243242
result_v.push_str(&result_str);
244243

245-
uart_16550::serial_println!("{}", result_v);
244+
log::trace!("{}", result_v);
246245
}
247246

248247
result_usize

src/aero_kernel/src/syscall/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub fn waitpid(pid: usize, status: usize, _flags: usize) -> Result<usize, AeroSy
145145
let current_task = scheduler::get_scheduler().current_task();
146146
let status = unsafe { &mut *(status as *mut u32) };
147147

148-
Ok(current_task.waitpid(pid, status)?)
148+
Ok(current_task.waitpid(pid as isize, status)?)
149149
}
150150

151151
pub fn mmap(

0 commit comments

Comments
 (0)