Merge pull request #76 from kbleeke/ioctl-response-logging

cleanup ioctl response logging
This commit is contained in:
Dario Nieuwenhuis 2023-05-03 18:21:35 +00:00 committed by GitHub
commit 733b83e44f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}
}