aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-09-24 13:55:56 -0400
committerBrian Cully <bjc@kublai.com>2019-09-24 14:38:13 -0400
commite0542778e674d623b48ed0de9ab4195d2f1bfc5e (patch)
treea2ad246e12e508c1dd92707e72e60599726a1d0f /src
parent25594f9919df9772cda56a78e4c269d1e1d1a838 (diff)
downloadatsamd-usb-host-e0542778e674d623b48ed0de9ab4195d2f1bfc5e.tar.gz
atsamd-usb-host-e0542778e674d623b48ed0de9ab4195d2f1bfc5e.zip
Log everything in one statement in `log_regs`.
Diffstat (limited to 'src')
-rw-r--r--src/pipe.rs14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/pipe.rs b/src/pipe.rs
index 60b2056..8739efd 100644
--- a/src/pipe.rs
+++ b/src/pipe.rs
@@ -540,14 +540,6 @@ impl Pipe<'_, '_> {
let bin = self.regs.binterval.read().bits();
let sts = self.regs.status.read().bits();
let ifl = self.regs.intflag.read().bits();
- trace!(
- "p{}: cfg: {:x}, bin: {:x}, sts: {:x}, ifl: {:x}",
- self.num,
- cfg,
- bin,
- sts,
- ifl
- );
// Pipe RAM regs
let adr = self.desc.bank0.addr.read().bits();
@@ -557,8 +549,12 @@ impl Pipe<'_, '_> {
let hcp = self.desc.bank0.ctrl_pipe.read().bits();
let spi = self.desc.bank0.status_pipe.read().bits();
trace!(
- "p{}: adr: {:x}, pks: {:x}, ext: {:x}, sbk: {:x}, hcp: {:x}, spi: {:x}",
+ "p{}:\n\tcfg: {:x}, bin: {:x}, sts: {:x}, ifl: {:x}\n\tadr: {:x}, pks: {:x}, ext: {:x}, sbk: {:x}, hcp: {:x}, spi: {:x}",
self.num,
+ cfg,
+ bin,
+ sts,
+ ifl,
adr,
pks,
ext,