From 2f010e0109d6d0ddec64fd4e9abfe2aa0cc54109 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 15 Sep 2018 10:44:41 +0800 Subject: [PATCH] runtime: improve moninj aux error logging --- artiq/firmware/runtime/moninj.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/runtime/moninj.rs b/artiq/firmware/runtime/moninj.rs index b049806df..5ffaa96a0 100644 --- a/artiq/firmware/runtime/moninj.rs +++ b/artiq/firmware/runtime/moninj.rs @@ -66,7 +66,7 @@ mod remote_moninj { } match drtioaux::recv_timeout(linkno, None) { Ok(drtioaux::Packet::MonitorReply { value }) => return value, - Ok(_) => error!("received unexpected aux packet"), + Ok(packet) => error!("received unexpected aux packet: {:?}", packet), Err(e) => error!("aux packet error ({})", e) } 0 @@ -100,7 +100,7 @@ mod remote_moninj { } match drtioaux::recv_timeout(linkno, None) { Ok(drtioaux::Packet::InjectionStatusReply { value }) => return value, - Ok(_) => error!("received unexpected aux packet"), + Ok(packet) => error!("received unexpected aux packet: {:?}", packet), Err(e) => error!("aux packet error ({})", e) } 0