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
@@ -167,10 +167,7 @@ impl Pausable for Gic {
|
||||
// Flush tables to guest RAM
|
||||
let vgic = self.vgic.as_ref().unwrap().clone();
|
||||
vgic.lock().unwrap().save_data_tables().map_err(|e| {
|
||||
MigratableError::Pause(anyhow!(
|
||||
"Could not save GICv3ITS GIC pending tables {:?}",
|
||||
e
|
||||
))
|
||||
MigratableError::Pause(anyhow!("Could not save GICv3ITS GIC pending tables {e:?}",))
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -491,7 +491,7 @@ impl PvmemcontrolBusDevice {
|
||||
} else {
|
||||
std::ptr::null()
|
||||
};
|
||||
debug!("addr {:X} length {} name {:?}", addr, length, name);
|
||||
debug!("addr {addr:X} length {length} name {name:?}");
|
||||
|
||||
// SAFETY: [`base`, `base` + `len`) is guest memory
|
||||
self.operate_on_memory_range(addr, length, |base, len| unsafe {
|
||||
@@ -581,7 +581,7 @@ impl PvmemcontrolBusDevice {
|
||||
..Default::default()
|
||||
},
|
||||
Error::GuestMemory(err) => {
|
||||
warn!("{}", err);
|
||||
warn!("{err}");
|
||||
PvmemcontrolResp {
|
||||
ret_errno: (libc::EINVAL as u32).into(),
|
||||
ret_code: (func_code as u32).into(),
|
||||
@@ -606,7 +606,7 @@ impl PvmemcontrolBusDevice {
|
||||
let response: PvmemcontrolResp = match self.handle_request(request) {
|
||||
Ok(x) => x,
|
||||
Err(e) => {
|
||||
warn!("cannot process request {:?} with error {}", request, e);
|
||||
warn!("cannot process request {request:?} with error {e}");
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user