diff --git a/source/lib/core/config.cpp b/source/lib/core/config.cpp index 9ed5f840..38fbc4e5 100644 --- a/source/lib/core/config.cpp +++ b/source/lib/core/config.cpp @@ -2456,7 +2456,7 @@ tmp_file::~tmp_file() void tmp_file::touch() const - { +{ if(!filepath::exists(filename)) { // if the filepath does not exist, open in out mode to create it diff --git a/source/lib/core/perfetto.cpp b/source/lib/core/perfetto.cpp index c3b84d90..427ca6e6 100644 --- a/source/lib/core/perfetto.cpp +++ b/source/lib/core/perfetto.cpp @@ -133,7 +133,7 @@ start() tracing_session->SetOnErrorCallback([](::perfetto::TracingError _err) { if(_err.code == ::perfetto::TracingError::kTracingFailed) ROCPROFSYS_WARNING(0, "perfetto encountered a tracing error: %s\n", - _err.message.c_str()); + _err.message.c_str()); }); tracing_session->Setup(cfg, _fd); tracing_session->StartBlocking();