summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2023-05-31 09:28:38 +0300
committerAntti Määttä <antti.maatta@qt.io>2023-06-02 17:53:26 +0300
commit6639285ad7d69f794eb96163dec37464bdb8a726 (patch)
treee50cbd9493b478db87eefb1eff11acf8dfc7fb83 /src
parentfdce0cbbc9644d4b2e591236453b732b0e0a4fb9 (diff)
CTF: Add qt_error_string to file open warning
Pick-to: 6.5 Change-Id: I85e1aff7689b6592ad2da1e91f480848eea317eb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/tracing/qctflib.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/tracing/qctflib.cpp b/src/plugins/tracing/qctflib.cpp
index b3b4c082b8..99c4064269 100644
--- a/src/plugins/tracing/qctflib.cpp
+++ b/src/plugins/tracing/qctflib.cpp
@@ -70,7 +70,8 @@ QCtfLibImpl::QCtfLibImpl()
const QString filename = location + QStringLiteral("/session.json");
FILE *file = fopen(qPrintable(filename), "rb");
if (!file) {
- qCWarning(lcDebugTrace) << "unable to open session file: " << filename;
+ qCWarning(lcDebugTrace) << "unable to open session file: "
+ << filename << ", " << qt_error_string();
m_location = location;
m_session.tracepoints.append(QStringLiteral("all"));
m_session.name = QStringLiteral("default");