mirror of
https://github.com/mbilker/vgpu_unlock-rs.git
synced 2026-01-17 11:57:00 +01:00
nvidia(ctrla082): print extra data if any byte is non-zero
This commit is contained in:
@@ -48,10 +48,11 @@ impl fmt::Debug for NvA082CtrlCmdHostVgpuDeviceGetVgpuTypeInfoParams {
|
|||||||
} else {
|
} else {
|
||||||
&[]
|
&[]
|
||||||
};
|
};
|
||||||
let vgpu_extra_params = self.vgpu_extra_params[..]
|
let vgpu_extra_params = if self.vgpu_extra_params[..].iter().any(|&x| x != 0) {
|
||||||
.split(|&x| x == 0)
|
&self.vgpu_extra_params[..]
|
||||||
.next()
|
} else {
|
||||||
.unwrap_or(&[]);
|
&[]
|
||||||
|
};
|
||||||
|
|
||||||
f.debug_struct("NvA082CtrlCmdHostVgpuDeviceGetVgpuTypeInfoParams")
|
f.debug_struct("NvA082CtrlCmdHostVgpuDeviceGetVgpuTypeInfoParams")
|
||||||
.field("vgpu_type", &self.vgpu_type)
|
.field("vgpu_type", &self.vgpu_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user