From f71e3adb79934d1cd5fe28200ddfb5769468d307 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Fri, 20 Sep 2019 16:04:35 -0400 Subject: [PATCH] When printing warnings, label the warnings as coming from virtio_wl --- rust/src/devices/virtio_wl/device.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/src/devices/virtio_wl/device.rs b/rust/src/devices/virtio_wl/device.rs index 6b7cbc9..ea185d2 100644 --- a/rust/src/devices/virtio_wl/device.rs +++ b/rust/src/devices/virtio_wl/device.rs @@ -109,7 +109,7 @@ impl WaylandDevice { let events = match poll.wait() { Ok(v) => v, Err(e) => { - warn!("error waiting for poll events: {}", e); + warn!("virtio_wl: error waiting for poll events: {}", e); break; } }; @@ -137,7 +137,7 @@ impl WaylandDevice { }, Self::KILL_TOKEN => break 'poll, Self::VFDS_TOKEN => self.vfd_manager.process_poll_events(), - _ => warn!("unexpected poll token value"), + _ => warn!("virtio_wl: unexpected poll token value"), } }; } @@ -246,7 +246,7 @@ impl <'a> MessageHandler<'a> { let vfd = match self.device.get_vfd(vfd_id) { Some(vfd) => vfd, None => { - warn!("Received unexpected vfd id 0x{:08x}", vfd_id); + warn!("virtio_wl: Received unexpected vfd id 0x{:08x}", vfd_id); return Ok(None); } };