From ed6aa29897c58bdc6f847bf7caafe59f638a8f5c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 29 Jan 2019 16:47:29 +0800 Subject: [PATCH] jesd204sync: print more information on test_slip_ddmtd error --- artiq/firmware/libboard_artiq/jesd204sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/libboard_artiq/jesd204sync.rs b/artiq/firmware/libboard_artiq/jesd204sync.rs index 5580f801c..8067ab438 100644 --- a/artiq/firmware/libboard_artiq/jesd204sync.rs +++ b/artiq/firmware/libboard_artiq/jesd204sync.rs @@ -103,7 +103,7 @@ fn test_slip_ddmtd() -> Result<(), &'static str> { let phase = measure_ddmdt_phase(); let step = (DDMTD_N + old_phase - phase) % DDMTD_N; if (step - expected_step).abs() > tolerance { - error!(" ...got unexpected step: {}", step); + error!(" ...got unexpected step: {} ({} -> {})", step, old_phase, phase); return Err("HMC7043 SYSREF slip produced unexpected DDMTD step"); } old_phase = phase;