From de9d1f495f0444aeb93e10407e0c76514c9bde14 Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Tue, 30 Jun 2026 02:23:30 +0300 Subject: [PATCH] =?UTF-8?q?base:=20ps2d/inputd=20=E2=80=94=20add=20startup?= =?UTF-8?q?=20info=20logs=20for=20boot=20diagnostics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both daemons previously produced no Info-level output on successful start, making it impossible to confirm from the boot log whether ps2d and inputd were actually alive. The kernel serial log shows no [INFO] ps2d: or [INFO] inputd: lines during normal boot, leading operators to assume the input stack was dead when in fact it was working. This adds two log::info!() calls: - ps2d main.rs: after daemon.ready(), log that ps2d has registered its ProducerHandle and is listening on serio/0 (keyboard) and serio/1 (mouse). - inputd main.rs: after setup_logging, log that inputd has registered scheme:input and is waiting for handles. These are emitted only on the successful startup path; existing .error!()/.warn!() calls continue to surface real failures. No behavior change; no functional effect on input handling. --- drivers/input/ps2d/src/main.rs | 4 ++++ drivers/inputd/src/main.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/input/ps2d/src/main.rs b/drivers/input/ps2d/src/main.rs index db17de2a62..0384409671 100644 --- a/drivers/input/ps2d/src/main.rs +++ b/drivers/input/ps2d/src/main.rs @@ -93,6 +93,10 @@ fn daemon(daemon: daemon::Daemon) -> ! { daemon.ready(); + log::info!( + "ps2d: registered producer handle, listening on serio/0 (keyboard) and serio/1 (mouse)" + ); + let mut ps2d = Ps2d::new(input, time_file); let mut data = [0; 256]; diff --git a/drivers/inputd/src/main.rs b/drivers/inputd/src/main.rs index 07aa943eee..261ee21436 100644 --- a/drivers/inputd/src/main.rs +++ b/drivers/inputd/src/main.rs @@ -658,6 +658,8 @@ fn main() { common::file_level(), ); + log::info!("inputd: scheme:input registered, waiting for handles"); + daemon::SchemeDaemon::new(daemon_runner); } }