Skip to contentSkip to conversation

rust_binder: drop startup init log message

PATCH In review EXtremeExploit 3 participants 3 messages Mar 28 – Mar 30 Android drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust_binder: drop startup init log message

From: Pedro Montes Alcalde <[email protected]>

The "Loaded Rust Binder." message is logged during normal initialization and does not indicate an error/warning condition.

Logging it creates unnecessary noise and is inconsistent with other drivers, so this change fixes that

---
This time i have SMTP setup with git, so hopefully there arent any formatting issues

 drivers/android/binder/rust_binder_main.rs | 2 --
 1 file changed, 2 deletions(-)
drivers/android/binder/rust_binder_main.rs +0 -2
index aa5f2a75adb4..dccb7ba3ffc0 100644
@@ -292,8 +292,6 @@ fn init(_module: &'static kernel::ThisModule) -> Result<Self> {
         // SAFETY: The module initializer never runs twice, so we only call this once.
         unsafe { crate::context::CONTEXTS.init() };
 
-        pr_warn!("Loaded Rust Binder.");
-
         BINDER_SHRINKER.register(c"android-binder")?;
 
         // SAFETY: The module is being loaded, so we can initialize binderfs.
Signature · 1 line
2.53.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · EXtremeExploit

From: Pedro Montes Alcalde <[email protected]>

The "Loaded Rust Binder." message is logged during normal initialization and does not indicate an error/warning condition.

Logging it creates unnecessary noise and is inconsistent with other drivers, so this change fixes that

---
This time i have SMTP setup with git, so hopefully there arent any formatting issues

Yeap, this is good now. Thanks.

Quoted 19 lines
 drivers/android/binder/rust_binder_main.rs | 2 --
 1 file changed, 2 deletions(-)
drivers/android/binder/rust_binder_main.rs +0 -2
index aa5f2a75adb4..dccb7ba3ffc0 100644
@@ -292,8 +292,6 @@ fn init(_module: &'static kernel::ThisModule) -> Result<Self> {
         // SAFETY: The module initializer never runs twice, so we only call this once.
         unsafe { crate::context::CONTEXTS.init() };
 
-        pr_warn!("Loaded Rust Binder.");
-
         BINDER_SHRINKER.register(c"android-binder")?;
 
         // SAFETY: The module is being loaded, so we can initialize binderfs.
Signature · 1 line
2.53.0
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to EXtremeExploit
Quoted 9 lines · EXtremeExploit

From: Pedro Montes Alcalde <[email protected]>

The "Loaded Rust Binder." message is logged during normal initialization and does not indicate an error/warning condition.

Logging it creates unnecessary noise and is inconsistent with other drivers, so this change fixes that