mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
kernel: add process name to server output
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
ce4e40b28a
commit
6f4b58c47d
1 changed files with 9 additions and 3 deletions
|
|
@ -275,11 +275,17 @@ fn process_irq_character(b: u8) {
|
|||
b's' => {
|
||||
println!("Servers in use:");
|
||||
crate::services::SystemServices::with(|system_services| {
|
||||
println!(" idx | pid | sid");
|
||||
println!(" --- + --- + -------------------");
|
||||
println!(" idx | pid | process | sid");
|
||||
println!(" --- + --- + -------------------- | ------------------");
|
||||
for (idx, server) in system_services.servers.iter().enumerate() {
|
||||
if let Some(s) = server {
|
||||
println!(" {:3} | {:3} | {:x?}", idx, s.pid, s.sid);
|
||||
println!(
|
||||
" {:3} | {:3} | {:20} | {:x?}",
|
||||
idx,
|
||||
s.pid,
|
||||
system_services.process_name(s.pid).unwrap_or(""),
|
||||
s.sid
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue