From 25594f9919df9772cda56a78e4c269d1e1d1a838 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 24 Sep 2019 12:17:53 -0400 Subject: Log when a driver wants a device. --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 122c412..982b7a2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ use atsamd_hal::{ target_device::{PM, USB}, }; use embedded_hal::digital::v2::OutputPin; -use log::{debug, error, trace, warn}; +use log::{debug, error, info, trace, warn}; use starb::{Reader, RingBuffer, Writer}; #[derive(Clone, Copy, Debug, PartialEq)] @@ -448,6 +448,7 @@ where // it. for d in &mut drivers[..] { if d.want_device(&dev_desc) { + info!("{:?} will take address {}.", d, addr); let res = d.add_device(dev_desc, addr); match res { Ok(_) => return Ok(()), -- cgit v1.2.3