Merge pull request #76 from kbleeke/ioctl-response-logging
cleanup ioctl response logging
This commit is contained in:
commit
733b83e44f
@ -110,7 +110,7 @@ impl IoctlState {
|
||||
|
||||
pub fn ioctl_done(&self, response: &[u8]) {
|
||||
if let IoctlStateInner::Sent { buf } = self.state.get() {
|
||||
info!("IOCTL Response: {:02x}", Bytes(response));
|
||||
trace!("IOCTL Response: {:02x}", Bytes(response));
|
||||
|
||||
// TODO fix this
|
||||
(unsafe { &mut *buf }[..response.len()]).copy_from_slice(response);
|
||||
|
@ -351,8 +351,6 @@ where
|
||||
panic!("IOCTL error {}", cdc_header.status as i32);
|
||||
}
|
||||
|
||||
info!("IOCTL Response: {:02x}", Bytes(response));
|
||||
|
||||
self.ioctl_state.ioctl_done(response);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user