rust_binder: Downgrade startup warning to info
PATCH 1/1 rust_binder: Downgrade startup warning to info
The "Loaded Rust Binder." message is logged during normal initialization and does not indicate an error/warning condition.
Logging it as a warning creates unnecessary noise and may mislead developers when inspecting logs. Log it as info instead
---
drivers/android/binder/rust_binder_main.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
drivers/android/binder/rust_binder_main.rs +0 -0
@@ -292,7 +292,7 @@ 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.");
+ pr_info!("Loaded Rust Binder.");
BINDER_SHRINKER.register(c"android-binder")?;
Signature · 1 line
2.53.0
Carlos Llamas
maintainerQuoted 5 lines · Pedro Montes Alcalde
The "Loaded Rust Binder." message is logged during normal initialization and does not indicate an error/warning condition.
Logging it as a warning creates unnecessary noise and may mislead developers when inspecting logs. Log it as info instead
Yeap, I agree.
Quoted 17 lines
Signed-off-by Pedro Montes Alcalde <[email protected]>---
drivers/android/binder/rust_binder_main.rs | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/android/binder/rust_binder_main.rs +0
-0@@ -292,7 +292,7 @@ fn init(_module: &'static kernel::ThisModule) ->Result <Self > { // SAFETY: The module initializer never runs twice, so we only callthis once.
unsafe {crate::context::CONTEXTS.init()};
Quoted 9 lines
- pr_warn!("Loaded Rust Binder.");
+ pr_info!("Loaded Rust Binder.");BINDER_SHRINKER.register(c"android-binder")?;
Signature · 1 line
2.53.0
The change seems fine but there is somthing off with the formatting of you patch. It has some odd NBSP chars and some lines are wrapped at 75 chars when they shouldn't have. Looks like maybe a copy-paste thing?
--
Carlos Llamas
Carlos Llamas
maintainerPATCH v2 1/1 rust_binder: Downgrade startup warning to info
In reply to Pedro Montes AlcaldeFrom: 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 as a warning creates unnecessary noise and may mislead developers when inspecting logs. Log it as info instead
---
v2: fixed patch formatting, added tags.
drivers/android/binder/rust_binder_main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/android/binder/rust_binder_main.rs +1 -1
@@ -292,7 +292,7 @@ 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." ); +pr_info! ("Loaded Rust Binder." );BINDER_SHRINKER .register (c"android-binder" )?;
Signature · 1 line
2.53.0.1018.g2bb0e51243-goog
Greg KH
maintainerQuoted 22 lines · Carlos Llamas
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 as a warning creates unnecessary noise and may mislead developers when inspecting logs. Log it as info instead
Signed-off-by Pedro Montes Alcalde <[email protected]>Acked-by Carlos Llamas <[email protected]>Signed-off-by Carlos Llamas <[email protected]>---
v2: fixed patch formatting, added tags.drivers/android/binder/rust_binder_main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/android/binder/rust_binder_main.rs +0
-0
drivers/android/binder/rust_binder_main.rs fn init(_module: &'static kernel::ThisModule) -> Result<Self> { · line 295
Quoted 5 lines
drivers/android/binder/rust_binder_main.rs +1
-1@@ -292,7 +292,7 @@ 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." ); +pr_info! ("Loaded Rust Binder." );
When drivers work properly, they are quiet, so why print anything out at all here?
thanks,
greg k-h
Alice Ryhl
maintainerQuoted 26 lines · Greg KH
Quoted 25 lines · Carlos Llamas
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 as a warning creates unnecessary noise and may mislead developers when inspecting logs. Log it as info instead
Signed-off-by Pedro Montes Alcalde <[email protected]>Acked-by Carlos Llamas <[email protected]>Signed-off-by Carlos Llamas <[email protected]>---
v2: fixed patch formatting, added tags.drivers/android/binder/rust_binder_main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/android/binder/rust_binder_main.rs +0
-0@@ -292,7 +292,7 @@ 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 () };
Quoted 5 lines
drivers/android/binder/rust_binder_main.rs fn init(_module: &'static kernel::ThisModule) -> Result<Self> { · line 295
Quoted 2 lines
drivers/android/binder/rust_binder_main.rs +1
-1-pr_warn! ("Loaded Rust Binder." ); +pr_info! ("Loaded Rust Binder." );When drivers work properly, they are quiet, so why print anything out at all here?
Yeah let's just delete this. It's not needed anymore.
Alice