aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-10-29 09:23:23 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-10-29 09:23:32 +0300
commit978aace94d6a6907d13b69e8421c82f0e485278b (patch)
tree3c23a07f8b3a777e2fc6662eb595e56d18ebd2a8 /src
parent66583cd650ca4f12a2a7038d83640213993da78f (diff)
downloadniri-978aace94d6a6907d13b69e8421c82f0e485278b.tar.gz
niri-978aace94d6a6907d13b69e8421c82f0e485278b.tar.bz2
niri-978aace94d6a6907d13b69e8421c82f0e485278b.zip
tty: Tone down some property setting messages
If those props are missing we don't want to scream "error" in the logs.
Diffstat (limited to 'src')
-rw-r--r--src/backend/tty.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs
index bc638005..3d8bdcd0 100644
--- a/src/backend/tty.rs
+++ b/src/backend/tty.rs
@@ -944,7 +944,7 @@ impl Tty {
if let Ok(props) = ConnectorProperties::try_new(&device.drm, connector.handle()) {
match reset_hdr(&props) {
Ok(()) => (),
- Err(err) => debug!("error resetting HDR properties: {err:?}"),
+ Err(err) => debug!("couldn't reset HDR properties: {err:?}"),
}
if !niri.config.borrow().debug.keep_max_bpc_unchanged {
@@ -952,7 +952,7 @@ impl Tty {
// run.
match set_max_bpc(&props, 8) {
Ok(_bpc) => (),
- Err(err) => debug!("error setting max bpc: {err:?}"),
+ Err(err) => debug!("couldn't set max bpc: {err:?}"),
}
}
} else {
@@ -960,7 +960,7 @@ impl Tty {
};
let mut gamma_props = GammaProps::new(&device.drm, crtc)
- .map_err(|err| debug!("error getting gamma properties: {err:?}"))
+ .map_err(|err| debug!("couldn't get gamma properties: {err:?}"))
.ok();
// Reset gamma in case it was set before.
@@ -970,7 +970,7 @@ impl Tty {
set_gamma_for_crtc(&device.drm, crtc, None)
};
if let Err(err) = res {
- debug!("error resetting gamma: {err:?}");
+ debug!("couldn't reset gamma: {err:?}");
}
let surface = device
@@ -1981,7 +1981,7 @@ impl Tty {
match reset_hdr(&props) {
Ok(()) => (),
Err(err) => debug!(
- "output {:?} HDR: error resetting HDR properties: {err:?}",
+ "output {:?}: couldn't reset HDR properties: {err:?}",
surface.name.connector
),
}