diff options
Diffstat (limited to 'devices/src/virtio/input/mod.rs')
-rw-r--r-- | devices/src/virtio/input/mod.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/devices/src/virtio/input/mod.rs b/devices/src/virtio/input/mod.rs index 7c9418c..7d5b91a 100644 --- a/devices/src/virtio/input/mod.rs +++ b/devices/src/virtio/input/mod.rs @@ -243,6 +243,12 @@ pub struct VirtioInputConfig { axis_info: BTreeMap<u16, virtio_input_absinfo>, } +impl std::fmt::Debug for VirtioInputConfig { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + write!(f, "VirtioInputConfig {{ .. }}") + } +} + impl VirtioInputConfig { fn new( device_ids: virtio_input_device_ids, @@ -534,7 +540,7 @@ impl<T: EventSource> Worker<T> { } /// Virtio input device - +#[derive(Debug)] pub struct Input<T: EventSource> { kill_evt: Option<EventFd>, worker_thread: Option<thread::JoinHandle<Worker<T>>>, @@ -557,7 +563,7 @@ impl<T: EventSource> Drop for Input<T> { impl<T> VirtioDevice for Input<T> where - T: 'static + EventSource + Send, + T: 'static + EventSource + Send + std::fmt::Debug, { fn keep_fds(&self) -> Vec<RawFd> { if let Some(source) = &self.source { |