Fix ps2d daemon name in log messages

This commit is contained in:
Jeremy Soller
2022-04-27 15:12:52 -06:00
parent 0e9e91ddef
commit 64f40c584b
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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)
}
};
+4 -4
View File
@@ -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");
}