Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed May 30, 2024
1 parent 790e97f commit 209330f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Display for ExecutionReport {

// Sort instructions by opcode name
sorted_instructions.sort_by_key(|&(opcode, _)| opcode.to_string());
for (opcode, count) in &sorted_instructions {
for (opcode, count) in sorted_instructions {
writeln!(f, " {}: {}", opcode, count)?;
}
writeln!(f, "Total Instructions: {}", self.total_instruction_count())?;
Expand All @@ -122,9 +122,9 @@ impl Display for ExecutionReport {
let mut sorted_syscalls = self.syscall_counts.iter().collect::<Vec<_>>();

// Sort syscalls by syscall name
sorted_syscalls.sort_by_key(|&(syscall, _)| syscall.to_string());
for (syscall, count) in &sorted_syscalls {
writeln!(f, " {}: {}", syscall, count)?;
sorted_syscalls.sort_by_key(|&(syscall, _)| format!("{:?}", syscall));
for (syscall, count) in sorted_syscalls {
writeln!(f, " {}: {}", syscall.syscall_id(), count)?;
}
writeln!(f, "Total Syscall Count: {}", self.total_syscall_count())?;

Expand Down

0 comments on commit 209330f

Please sign in to comment.