mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Slightly change how module load error is reported
This commit is contained in:
@@ -293,9 +293,8 @@ impl CtrlGraphics {
|
|||||||
warn!("It may be safe to ignore the above error, run `lsmod |grep nvidia` to confirm modules loaded");
|
warn!("It may be safe to ignore the above error, run `lsmod |grep nvidia` to confirm modules loaded");
|
||||||
return Ok(())
|
return Ok(())
|
||||||
}
|
}
|
||||||
let msg = format!("{} {} failed: {:?}", action, driver, String::from_utf8_lossy(&output.stderr));
|
if count >= MAX_TRIES {
|
||||||
error!("{} {} try: {}: Error: {}", action, driver, count, msg);
|
let msg = format!("{} {} failed: {:?}", action, driver, String::from_utf8_lossy(&output.stderr));
|
||||||
if count == MAX_TRIES {
|
|
||||||
return Err(RogError::Modprobe(msg));
|
return Err(RogError::Modprobe(msg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user