Skip to content

Commit

Permalink
Remove debug trace
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Nov 18, 2024
1 parent 41e08a9 commit f93d5eb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions task/jefe/src/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ enum Trace {
GetDumpArea(u8),
Base(u32),
GetDumpAreaFailed(humpty::DumpError<()>),
GetDumpAreaFailed2(Result<DumpArea, DumpAgentError>),
ClaimDumpAreaFailed(humpty::DumpError<()>),
Claiming,
Dumping {
Expand Down Expand Up @@ -104,7 +103,7 @@ pub fn get_dump_area(base: u32, index: u8) -> Result<DumpArea, DumpAgentError> {
// SAFETY: we have configured memory so that humpty should only read
// headers which are properly initialized and which this task is allowed to
// read.
let r = match humpty::get_dump_area(base, index, |addr, buf, _| unsafe {
match humpty::get_dump_area(base, index, |addr, buf, _| unsafe {
humpty::from_mem(addr, buf)
}) {
Err(e) => {
Expand All @@ -113,9 +112,7 @@ pub fn get_dump_area(base: u32, index: u8) -> Result<DumpArea, DumpAgentError> {
}

Ok(rval) => Ok(rval),
};
ringbuf_entry!(Trace::GetDumpAreaFailed2(r));
r
}
}

pub fn claim_dump_area(base: u32) -> Result<DumpArea, DumpAgentError> {
Expand Down

0 comments on commit f93d5eb

Please sign in to comment.