From 1cbfa220fc8b88bfdf880fed87fe7d946bfdd023 Mon Sep 17 00:00:00 2001 From: Christian Kandeler <christian.kandeler@nokia.com> Date: Thu, 2 Dec 2010 16:50:15 +0100 Subject: [PATCH] INSTALLS element checking: Add more detail to debug message. For larger projects, it doesn't make much sense without mentioning the respective project file. --- src/plugins/qt4projectmanager/qt4nodes.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index 2c1163f8434..0d1d3335297 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -2015,8 +2015,8 @@ void Qt4ProFileNode::setupInstallsList(const ProFileReader *reader) qDebug("Invalid RHS: Variable '%s' has %d values.", qPrintable(pathVar), itemPaths.count()); if (itemPaths.isEmpty()) { - qDebug("Ignoring INSTALLS item '%s', because it has no path.", - qPrintable(item)); + qDebug("%s: Ignoring INSTALLS item '%s', because it has no path.", + qPrintable(m_projectFilePath), qPrintable(item)); continue; } } @@ -2027,14 +2027,15 @@ void Qt4ProFileNode::setupInstallsList(const ProFileReader *reader) m_projectDir, QStringList() << m_projectDir, 0); if (item == QLatin1String("target")) { if (!m_installsList.targetPath.isEmpty()) - qDebug("Overwriting existing target.path in INSTALLS list."); + qDebug("%s: Overwriting existing target.path in INSTALLS list.", + qPrintable(m_projectFilePath)); m_installsList.targetPath = itemPath; } else { if (itemFiles.isEmpty()) { if (!reader->values(item + QLatin1String(".CONFIG")) .contains(QLatin1String("no_check_exist"))) { - qDebug("Ignoring INSTALLS item '%s', because it has no files.", - qPrintable(item)); + qDebug("%s: Ignoring INSTALLS item '%s', because it has no files.", + qPrintable(m_projectFilePath), qPrintable(item)); } continue; } -- GitLab