From e0542778e674d623b48ed0de9ab4195d2f1bfc5e Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 24 Sep 2019 13:55:56 -0400 Subject: Log everything in one statement in `log_regs`. --- src/pipe.rs | 14 +++++--------- 1 file 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, -- cgit v1.2.3