summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-01-25 11:29:59 +0100
committerUlf Hermann <ulf.hermann@qt.io>2018-01-26 13:16:36 +0000
commit20439f3ed0a622dc6b122f3b2119ce71faae3abe (patch)
treed28608f7c35cfc06e3d396a48ad906c62e6c748b
parentd0e5572b4b96ab8d6cdf4daab60c95e7c11a7d77 (diff)
Make some error messages more verbose
Change-Id: I32bf8ef40e8bf566e23657df1d2ef5bd8186d8bb Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
-rw-r--r--app/perfattributes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/perfattributes.cpp b/app/perfattributes.cpp
index 7d6e24f..3493d6b 100644
--- a/app/perfattributes.cpp
+++ b/app/perfattributes.cpp
@@ -34,7 +34,7 @@ QDataStream &operator>>(QDataStream &stream, PerfEventAttributes &attrs)
stream >> attrs.m_type >> attrs.m_size;
if (attrs.m_size < PerfEventAttributes::SIZE_VER0) {
- qWarning() << "unsupported file format";
+ qWarning() << "unsupported file format. event attr size too small:" << attrs.m_size;
return stream;
}
@@ -222,7 +222,7 @@ bool PerfEventAttributes::operator==(const PerfEventAttributes &rhs) const
bool PerfAttributes::read(QIODevice *device, PerfHeader *header)
{
if (header->attrSize() < PerfEventAttributes::SIZE_VER0 + PerfFileSection::fixedLength()) {
- qWarning() << "unsupported file format";
+ qWarning() << "unsupported file format: header attrSize too small:" << header->attrSize();
return false;
}