forked from M-Labs/artiq
firmware: Make "unexpected reply from kernel CPU" log messages unique
This makes it easier to localize issues based on the log output.
This commit is contained in:
parent
3e49da3d39
commit
8b69babe8a
@ -223,7 +223,7 @@ unsafe fn kern_load(io: &Io, session: &mut Session, library: &[u8])
|
||||
Err(Error::Load(format!("{}", error)))
|
||||
}
|
||||
other =>
|
||||
unexpected!("unexpected reply from kernel CPU: {:?}", other)
|
||||
unexpected!("unexpected kernel CPU reply to load request: {:?}", other)
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -274,7 +274,8 @@ fn process_host_message(io: &Io,
|
||||
let slot = kern_recv(io, |reply| {
|
||||
match reply {
|
||||
&kern::RpcRecvRequest(slot) => Ok(slot),
|
||||
other => unexpected!("unexpected reply from kernel CPU: {:?}", other)
|
||||
other => unexpected!(
|
||||
"expected root value slot from kernel CPU, not {:?}", other)
|
||||
}
|
||||
})?;
|
||||
rpc::recv_return(stream, &tag, slot, &|size| -> Result<_, Error<SchedError>> {
|
||||
@ -282,7 +283,8 @@ fn process_host_message(io: &Io,
|
||||
Ok(kern_recv(io, |reply| {
|
||||
match reply {
|
||||
&kern::RpcRecvRequest(slot) => Ok(slot),
|
||||
other => unexpected!("unexpected reply from kernel CPU: {:?}", other)
|
||||
other => unexpected!(
|
||||
"expected nested value slot from kernel CPU, not {:?}", other)
|
||||
}
|
||||
})?)
|
||||
})?;
|
||||
@ -301,8 +303,8 @@ fn process_host_message(io: &Io,
|
||||
kern_recv(io, |reply| {
|
||||
match reply {
|
||||
&kern::RpcRecvRequest(_) => Ok(()),
|
||||
other =>
|
||||
unexpected!("unexpected reply from kernel CPU: {:?}", other)
|
||||
other => unexpected!(
|
||||
"expected (ignored) root value slot from kernel CPU, not {:?}", other)
|
||||
}
|
||||
})?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user