Skip to content

Commit

Permalink
exec: improve debug messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Nov 16, 2023
1 parent dcfeba7 commit 586657c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,17 @@ impl Lib {
let next = instr.exec(registers, LibSite::with(pos, lib_hash), context);

#[cfg(all(debug_assertions, feature = "std"))]
eprint!("\n@{:06}> {:48}; st0={}", pos, instr, registers.st0);
eprint!("\n@{:06}> {}; st0={}", pos, instr, registers.st0);

Check warning on line 296 in src/library/lib.rs

View check run for this annotation

Codecov / codecov/patch

src/library/lib.rs#L296

Added line #L296 was not covered by tests

if !registers.acc_complexity(instr) {
#[cfg(all(debug_assertions, feature = "std"))]
eprintln!();
eprintln!(" -> complexity overflow");

Check warning on line 300 in src/library/lib.rs

View check run for this annotation

Codecov / codecov/patch

src/library/lib.rs#L300

Added line #L300 was not covered by tests
return None;
}
match next {
ExecStep::Stop => {
#[cfg(all(debug_assertions, feature = "std"))]
eprintln!();
eprintln!(" -> execution stopped");

Check warning on line 306 in src/library/lib.rs

View check run for this annotation

Codecov / codecov/patch

src/library/lib.rs#L306

Added line #L306 was not covered by tests
return None;
}
ExecStep::Next => continue,
Expand Down

0 comments on commit 586657c

Please sign in to comment.