cleanup ioctl response logging

This commit is contained in:
Kai Bleeke 2023-05-03 20:15:43 +02:00 committed by GitHub
parent 6ee45f5ec0
commit 8dbe397f99
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]) { pub fn ioctl_done(&self, response: &[u8]) {
if let IoctlStateInner::Sent { buf } = self.state.get() { if let IoctlStateInner::Sent { buf } = self.state.get() {
info!("IOCTL Response: {:02x}", Bytes(response)); trace!("IOCTL Response: {:02x}", Bytes(response));
// TODO fix this // TODO fix this
(unsafe { &mut *buf }[..response.len()]).copy_from_slice(response); (unsafe { &mut *buf }[..response.len()]).copy_from_slice(response);

View file

@ -351,8 +351,6 @@ where
panic!("IOCTL error {}", cdc_header.status as i32); panic!("IOCTL error {}", cdc_header.status as i32);
} }
info!("IOCTL Response: {:02x}", Bytes(response));
self.ioctl_state.ioctl_done(response); self.ioctl_state.ioctl_done(response);
} }
} }