mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +00:00
vfio_user: Fix debug output to include reply for DeviceGetRegionInfo
The reply was being printed before it had been read so it was just showing the default values. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
1240ef3261
commit
d13eea3ba1
@ -501,11 +501,11 @@ impl Client {
|
||||
.map_err(Error::StreamWrite)?;
|
||||
|
||||
let mut reply = DeviceGetRegionInfo::default();
|
||||
info!("Reply: {:?}", reply);
|
||||
let (_, fd) = self
|
||||
.stream
|
||||
.recv_with_fd(reply.as_mut_slice())
|
||||
.map_err(Error::ReceiveWithFd)?;
|
||||
info!("Reply: {:?}", reply);
|
||||
|
||||
regions.push(Region {
|
||||
flags: reply.region_info.flags,
|
||||
|
Loading…
x
Reference in New Issue
Block a user