From 64f40c584b2364912da656ccf9546b64400ea591 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 27 Apr 2022 15:12:52 -0600 Subject: [PATCH] Fix ps2d daemon name in log messages --- ps2d/src/controller.rs | 2 +- ps2d/src/main.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ps2d/src/controller.rs b/ps2d/src/controller.rs index c907f814f8..fdfcb2495d 100644 --- a/ps2d/src/controller.rs +++ b/ps2d/src/controller.rs @@ -409,7 +409,7 @@ impl Ps2 { let (mouse_found, mouse_extra) = match self.init_mouse() { Ok(ok) => (true, ok), Err(err) => { - eprintln!("p2sd: failed to initialize mouse: {:?}", err); + eprintln!("ps2d: failed to initialize mouse: {:?}", err); (false, false) } }; diff --git a/ps2d/src/main.rs b/ps2d/src/main.rs index 934efb5631..880a531f09 100644 --- a/ps2d/src/main.rs +++ b/ps2d/src/main.rs @@ -41,12 +41,12 @@ fn daemon(daemon: syscall::Daemon) -> core::convert::Infallible { None => (keymap::us::get_char, "us"), }; - eprintln!("p2sd: using keymap '{}'", keymap_name); + eprintln!("ps2d: using keymap '{}'", keymap_name); let input = OpenOptions::new() .write(true) .open("display:input") - .expect("p2sd: failed to open display:input"); + .expect("ps2d: failed to open display:input"); let mut event_file = OpenOptions::new() .read(true) @@ -84,7 +84,7 @@ fn daemon(daemon: syscall::Daemon) -> core::convert::Infallible { let mut ps2d = Ps2d::new(input, keymap); - daemon.ready().expect("p2sd: failed to mark daemon as ready"); + daemon.ready().expect("ps2d: failed to mark daemon as ready"); let mut data = [0; 256]; loop { @@ -124,5 +124,5 @@ fn daemon(daemon: syscall::Daemon) -> core::convert::Infallible { } fn main() { - syscall::Daemon::new(daemon).expect("p2sd: failed to create daemon"); + syscall::Daemon::new(daemon).expect("ps2d: failed to create daemon"); }