diff options
author | Brian Cully <bjc@kublai.com> | 2019-09-24 13:55:56 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-09-24 14:38:13 -0400 |
commit | e0542778e674d623b48ed0de9ab4195d2f1bfc5e (patch) | |
tree | a2ad246e12e508c1dd92707e72e60599726a1d0f | |
parent | 25594f9919df9772cda56a78e4c269d1e1d1a838 (diff) | |
download | atsamd-usb-host-e0542778e674d623b48ed0de9ab4195d2f1bfc5e.tar.gz atsamd-usb-host-e0542778e674d623b48ed0de9ab4195d2f1bfc5e.zip |
Log everything in one statement in `log_regs`.
-rw-r--r-- | src/pipe.rs | 14 |
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, |