aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-09-24 12:17:53 -0400
committerBrian Cully <bjc@kublai.com>2019-09-24 14:09:53 -0400
commit25594f9919df9772cda56a78e4c269d1e1d1a838 (patch)
tree937821ecda7cbe26189d023df7f7cb4869e97766 /src
parent0f0467026b46a76174d4311148695a57e7f43cf3 (diff)
downloadatsamd-usb-host-25594f9919df9772cda56a78e4c269d1e1d1a838.tar.gz
atsamd-usb-host-25594f9919df9772cda56a78e4c269d1e1d1a838.zip
Log when a driver wants a device.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
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(()),