diff --git a/tools/spectool/src/main.rs b/tools/spectool/src/main.rs index d977531f..8ef197b7 100644 --- a/tools/spectool/src/main.rs +++ b/tools/spectool/src/main.rs @@ -247,10 +247,10 @@ fn main_generate() { let mut found_post_check_errors = false; - for (final_value, required_value) in expected_regs.iter().zip(post.regs.iter()) { + for ((final_value, reg), required_value) in expected_regs.iter().zip(Reg::ALL).zip(post.regs.iter()) { if let Some(required_value) = required_value { if final_value != required_value { - eprintln!("Failed post check for final register value for {path:?}: expected {required_value}, is {final_value}"); + eprintln!("{path:?}: unexpected {reg}: {final_value} (expected: {required_value})"); found_post_check_errors = true; } } @@ -258,7 +258,7 @@ fn main_generate() { if let Some(post_gas) = post.gas { if expected_gas != post_gas { - eprintln!("Failed post check for final gas value for {path:?}: expected {post_gas}, is {expected_gas}"); + eprintln!("{path:?}: unexpected gas: {expected_gas} (expected: {post_gas})"); found_post_check_errors = true; } }