Skip to content

Commit

Permalink
fprintf to printf
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Jan 24, 2023
1 parent 53b1e00 commit 603e5cd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ports-of-call/portable_errors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ namespace impl {
const char *const filename,
int const linenumber) {
if (condition_bool) {
std::fprintf(
stdout,
std::printf(
"### ERROR\n Condition: %s\n Message: %s\n File: "
"%s\n Line number: %i\n",
condition, message, filename, linenumber);
Expand All @@ -135,8 +134,7 @@ inline void require(bool condition_bool, const char *const condition,
[[noreturn]] PORTABLE_INLINE_FUNCTION void abort(const char *const message,
const char *const filename,
int const linenumber) {
std::fprintf(
stdout,
std::printf(
"### ERROR\n Message: %s\n File: %s\n Line number: %i\n",
message, filename, linenumber);
impl::abort();
Expand Down Expand Up @@ -179,8 +177,7 @@ inline void require(bool condition_bool, const char *const condition,
PORTABLE_INLINE_FUNCTION
void warn(const char *const message, const char *const filename,
int const linenumber) {
std::fprintf(
stdout,
std::printf(
"### WARNING\n Message: %s\n File: %s\n Line number: "
"%i\n",
message, filename, linenumber);
Expand Down

0 comments on commit 603e5cd

Please sign in to comment.