diff options
author | Brian Cully <bjc@kublai.com> | 2019-09-24 12:17:53 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-09-24 14:09:53 -0400 |
commit | 25594f9919df9772cda56a78e4c269d1e1d1a838 (patch) | |
tree | 937821ecda7cbe26189d023df7f7cb4869e97766 | |
parent | 0f0467026b46a76174d4311148695a57e7f43cf3 (diff) | |
download | atsamd-usb-host-25594f9919df9772cda56a78e4c269d1e1d1a838.tar.gz atsamd-usb-host-25594f9919df9772cda56a78e4c269d1e1d1a838.zip |
Log when a driver wants a device.
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(()), |