From 483b711b4e94b1fd58ca8e4055e0196fa4245d6b Mon Sep 17 00:00:00 2001 From: Matthew Abruzzo Date: Wed, 13 Sep 2023 14:52:36 -0400 Subject: [PATCH] minor bugfix related to chprintf --- src/io/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/io.cpp b/src/io/io.cpp index 119d52203..32fb8804d 100644 --- a/src/io/io.cpp +++ b/src/io/io.cpp @@ -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)