Skip to content

Commit 7db453d

Browse files
committed
actually show warnings about suppressed output
1 parent dea25db commit 7db453d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fn_call.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
398398
Err(_) => -1,
399399
}
400400
} else {
401-
warn!("Ignored output to FD {}", fd);
401+
eprintln!("Miri: Ignored output to FD {}", fd);
402402
n as i64 // pretend it all went well
403403
}; // now result is the value we return back to the program
404404
this.write_scalar(
@@ -632,7 +632,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
632632
};
633633
res.ok().map(|n| n as u64)
634634
} else {
635-
warn!("Ignored output to handle {}", handle);
635+
eprintln!("Miri: Ignored output to handle {}", handle);
636636
Some(n) // pretend it all went well
637637
};
638638
// If there was no error, write back how much was written

0 commit comments

Comments
 (0)