diff --git a/native/src/base/xwrap.rs b/native/src/base/xwrap.rs index 5ca25b27e..77139d2ed 100644 --- a/native/src/base/xwrap.rs +++ b/native/src/base/xwrap.rs @@ -38,13 +38,13 @@ macro_rules! perror { ($fmt:expr) => { $crate::log_with_formatter($crate::ffi::LogLevel::ErrorCxx, |w| { w.write_str($fmt)?; - w.write_fmt(format_args!(" failed with {}: {}", $crate::errno(), error_str())) + w.write_fmt(format_args_nl!(" failed with {}: {}", $crate::errno(), error_str())) }) }; ($fmt:expr, $($args:tt)*) => { $crate::log_with_formatter($crate::ffi::LogLevel::ErrorCxx, |w| { w.write_fmt(format_args!($fmt, $($args)*))?; - w.write_fmt(format_args!(" failed with {}: {}", $crate::errno(), error_str())) + w.write_fmt(format_args_nl!(" failed with {}: {}", $crate::errno(), error_str())) }) }; }