Skip to content

Commit

Permalink
minor bugfix related to chprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
mabruzzo committed Sep 13, 2023
1 parent 705f26f commit 483b711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2596,7 +2596,7 @@ int chprintf(const char *__restrict sdata, ...) // NOLINT(cert-dcl50-cpp)
{
int code = 0;
/*limit printf to root process only*/
if (not Is_Root_Proc()) {
if (Is_Root_Proc()) {
va_list ap;
va_start(ap, sdata);
code = vfprintf(stdout, sdata, ap); // NOLINT(clang-analyzer-valist.Uninitialized)
Expand Down

0 comments on commit 483b711

Please sign in to comment.