mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: clippy: add uninlined_format_args
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
7cb73e9e56
commit
ea4f07d3bf
@@ -294,7 +294,7 @@ impl BusDevice for Gpio {
|
||||
if data.len() <= 4 {
|
||||
let value = read_le_u32(data);
|
||||
if let Err(e) = self.handle_write(offset, value) {
|
||||
warn!("Failed to write to GPIO PL061 device: {}", e);
|
||||
warn!("Failed to write to GPIO PL061 device: {e}");
|
||||
}
|
||||
} else {
|
||||
warn!(
|
||||
|
||||
@@ -201,12 +201,11 @@ impl BusDevice for Rtc {
|
||||
if data.len() <= 4 {
|
||||
let v = read_le_u32(data);
|
||||
if let Err(e) = self.handle_write(offset, v) {
|
||||
warn!("Failed to write to RTC PL031 device: {}", e);
|
||||
warn!("Failed to write to RTC PL031 device: {e}");
|
||||
}
|
||||
} else {
|
||||
warn!(
|
||||
"Invalid RTC PL031 write: offset {}, data length {}",
|
||||
offset,
|
||||
"Invalid RTC PL031 write: offset {offset}, data length {}",
|
||||
data.len()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -322,7 +322,7 @@ impl Pl011 {
|
||||
self.handle_debug();
|
||||
}
|
||||
off => {
|
||||
debug!("PL011: Bad write offset, offset: {}", off);
|
||||
debug!("PL011: Bad write offset, offset: {off}");
|
||||
return Err(Error::BadWriteOffset(off));
|
||||
}
|
||||
}
|
||||
@@ -424,12 +424,11 @@ impl BusDevice for Pl011 {
|
||||
if data.len() <= 4 {
|
||||
let v = read_le_u32(data);
|
||||
if let Err(e) = self.handle_write(offset, v) {
|
||||
warn!("Failed to write to PL011 device: {}", e);
|
||||
warn!("Failed to write to PL011 device: {e}");
|
||||
}
|
||||
} else {
|
||||
warn!(
|
||||
"Invalid PL011 write: offset {}, data length {}",
|
||||
offset,
|
||||
"Invalid PL011 write: offset {offset}, data length {}",
|
||||
data.len()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user