From 2cffe2ec1a28ecb2f73b714a21687b9b35efb2a1 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 15 Jun 2019 12:48:45 +0200 Subject: [PATCH] [libcalamares] Move debugging to more useful spot - Count the KPMManagers as they are created --- src/libcalamares/partition/KPMManager.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/libcalamares/partition/KPMManager.cpp b/src/libcalamares/partition/KPMManager.cpp index edfc5aa4c..efc5f0003 100644 --- a/src/libcalamares/partition/KPMManager.cpp +++ b/src/libcalamares/partition/KPMManager.cpp @@ -70,7 +70,7 @@ InternalManager::InternalManager() else { auto* backend_p = CoreBackendManager::self()->backend(); - cDebug() << Logger::SubEntry << "Backend @" << (void *)backend_p << backend_p->id() << backend_p->version(); + cDebug() << Logger::SubEntry << "Backend @" << (void*)backend_p << backend_p->id() << backend_p->version(); s_kpm_loaded = true; } } @@ -92,8 +92,6 @@ InternalManager::~InternalManager() std::shared_ptr< InternalManager > getInternal() { - cDebug() << "KPMCore internal" << s_backend.use_count(); - if ( s_backend.expired() ) { auto p = std::make_shared< InternalManager >(); @@ -106,9 +104,13 @@ getInternal() KPMManager::KPMManager() : m_d( getInternal() ) { + cDebug() << "KPMManager" << s_backend.use_count() << "created."; } -KPMManager::~KPMManager() {} +KPMManager::~KPMManager() +{ + cDebug() << "KPMManager" << s_backend.use_count() << "being destroyed."; +} KPMManager::operator bool() const {