From 8c054f7ec76391a1660de1232ad683b4ff8ae9ab Mon Sep 17 00:00:00 2001 From: Stuart Pernsteiner Date: Mon, 9 Dec 2024 13:36:30 -0800 Subject: [PATCH] analyze: use println! instead of info! to print rewritten code --- c2rust-analyze/src/rewrite/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/c2rust-analyze/src/rewrite/mod.rs b/c2rust-analyze/src/rewrite/mod.rs index ac455a9d9..ca4b14533 100644 --- a/c2rust-analyze/src/rewrite/mod.rs +++ b/c2rust-analyze/src/rewrite/mod.rs @@ -338,18 +338,18 @@ pub fn apply_rewrites( update_files: UpdateFiles, ) { let emit = |filename, src: String| { - info!("\n\n ===== BEGIN {:?} =====", filename); + println!("\n\n ===== BEGIN {:?} =====", filename); for line in src.lines() { // Omit filecheck directives from the debug output, as filecheck can get confused due // to directives matching themselves (e.g. `// CHECK: foo` will match the `foo` in the // line `// CHECK: foo`). if let Some((pre, _post)) = line.split_once("// CHECK") { - info!("{}// (FileCheck directive omitted)", pre); + println!("{}// (FileCheck directive omitted)", pre); } else { - info!("{}", line); + println!("{}", line); } } - info!(" ===== END {:?} =====", filename); + println!(" ===== END {:?} =====", filename); if !matches!(update_files, UpdateFiles::No) { let mut path_ok = false;