forked from M-Labs/artiq
1
0
Fork 0

runtime: improve moninj aux error logging

This commit is contained in:
Sebastien Bourdeauducq 2018-09-15 10:44:41 +08:00
parent 20ed393c1e
commit 2f010e0109
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ mod remote_moninj {
} }
match drtioaux::recv_timeout(linkno, None) { match drtioaux::recv_timeout(linkno, None) {
Ok(drtioaux::Packet::MonitorReply { value }) => return value, 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) Err(e) => error!("aux packet error ({})", e)
} }
0 0
@ -100,7 +100,7 @@ mod remote_moninj {
} }
match drtioaux::recv_timeout(linkno, None) { match drtioaux::recv_timeout(linkno, None) {
Ok(drtioaux::Packet::InjectionStatusReply { value }) => return value, 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) Err(e) => error!("aux packet error ({})", e)
} }
0 0