diff --git a/src/libcalamares/Settings.cpp b/src/libcalamares/Settings.cpp index 6f73b462b..710846a2c 100644 --- a/src/libcalamares/Settings.cpp +++ b/src/libcalamares/Settings.cpp @@ -44,7 +44,7 @@ requireString( const YAML::Node& config, const char* key ) return QString::fromStdString( v.as< std::string >() ); else { - cWarning() << Logger::SubEntry() << "Required settings.conf key" << key << "is missing."; + cWarning() << Logger::SubEntry << "Required settings.conf key" << key << "is missing."; return QString(); } } @@ -58,7 +58,7 @@ requireBool( const YAML::Node& config, const char* key, bool d ) return v.as< bool >(); else { - cWarning() << Logger::SubEntry() << "Required settings.conf key" << key << "is missing."; + cWarning() << Logger::SubEntry << "Required settings.conf key" << key << "is missing."; return d; } } @@ -106,7 +106,7 @@ interpretModulesSearch( const bool debugMode, const QStringList& rawPaths, QStri output.append( d.absolutePath() ); } else - cDebug() << Logger::SubEntry() << "module-search entry non-existent" << path; + cDebug() << Logger::SubEntry << "module-search entry non-existent" << path; } } } diff --git a/src/modules/partition/core/DeviceList.cpp b/src/modules/partition/core/DeviceList.cpp index a7f9ff44c..e9cc34138 100644 --- a/src/modules/partition/core/DeviceList.cpp +++ b/src/modules/partition/core/DeviceList.cpp @@ -116,7 +116,7 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize ) #ifdef DEBUG_PARTITION_UNSAFE cWarning() << "Allowing unsafe partitioning choices." << devices.count() << "candidates."; #ifdef DEBUG_PARTITION_LAME - cDebug() << Logger::SubEntry() << "it has been lamed, and will fail."; + cDebug() << Logger::SubEntry << "it has been lamed, and will fail."; #endif #else cDebug() << "Removing unsuitable devices:" << devices.count() << "candidates."; @@ -125,29 +125,29 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize ) for ( DeviceList::iterator it = devices.begin(); it != devices.end(); ) if ( !( *it ) ) { - cDebug() << Logger::SubEntry() << "Skipping nullptr device"; + cDebug() << Logger::SubEntry << "Skipping nullptr device"; it = erase( devices, it); } else if ( ( *it )->deviceNode().startsWith( "/dev/zram" ) ) { - cDebug() << Logger::SubEntry() << "Removing zram" << it; + cDebug() << Logger::SubEntry << "Removing zram" << it; it = erase( devices, it ); } else if ( writableOnly && hasRootPartition( *it ) ) { - cDebug() << Logger::SubEntry() << "Removing device with root filesystem (/) on it" << it; + cDebug() << Logger::SubEntry << "Removing device with root filesystem (/) on it" << it; it = erase( devices, it ); } else if ( writableOnly && isIso9660( *it ) ) { - cDebug() << Logger::SubEntry() << "Removing device with iso9660 filesystem (probably a CD) on it" << it; + cDebug() << Logger::SubEntry << "Removing device with iso9660 filesystem (probably a CD) on it" << it; it = erase( devices, it ); } else if ( (minimumSize >= 0) && !( (*it)->capacity() > minimumSize ) ) { - cDebug() << Logger::SubEntry() << "Removing too-small" << it; + cDebug() << Logger::SubEntry << "Removing too-small" << it; it = erase( devices, it ); } else diff --git a/src/modules/partition/core/PartUtils.cpp b/src/modules/partition/core/PartUtils.cpp index cbbd63cbe..4feea0e38 100644 --- a/src/modules/partition/core/PartUtils.cpp +++ b/src/modules/partition/core/PartUtils.cpp @@ -109,20 +109,20 @@ canBeResized( Partition* candidate ) if ( !candidate->fileSystem().supportGrow() || !candidate->fileSystem().supportShrink() ) { - cDebug() << Logger::SubEntry() << "NO, filesystem" << candidate->fileSystem().name() + cDebug() << Logger::SubEntry << "NO, filesystem" << candidate->fileSystem().name() << "does not support resize."; return false; } if ( KPMHelpers::isPartitionFreeSpace( candidate ) ) { - cDebug() << Logger::SubEntry() << "NO, partition is free space"; + cDebug() << Logger::SubEntry << "NO, partition is free space"; return false; } if ( candidate->isMounted() ) { - cDebug() << Logger::SubEntry() << "NO, partition is mounted"; + cDebug() << Logger::SubEntry << "NO, partition is mounted"; return false; } @@ -131,13 +131,13 @@ canBeResized( Partition* candidate ) PartitionTable* table = dynamic_cast< PartitionTable* >( candidate->parent() ); if ( !table ) { - cDebug() << Logger::SubEntry() << "NO, no partition table found"; + cDebug() << Logger::SubEntry << "NO, no partition table found"; return false; } if ( table->numPrimaries() >= table->maxPrimaries() ) { - cDebug() << Logger::SubEntry() << "NO, partition table already has" + cDebug() << Logger::SubEntry << "NO, partition table already has" << table->maxPrimaries() << "primary partitions."; return false; } @@ -164,10 +164,10 @@ canBeResized( Partition* candidate ) else if ( ok ) { auto deb = cDebug(); - deb << Logger::SubEntry() << "NO, insufficient storage"; - deb << Logger::Continuation() << "Required storage B:" << advisedStorageB + deb << Logger::SubEntry << "NO, insufficient storage"; + deb << Logger::Continuation << "Required storage B:" << advisedStorageB << QString( "(%1GB)" ).arg( advisedStorageGB ); - deb << Logger::Continuation() << "Available storage B:" << availableStorageB + deb << Logger::Continuation << "Available storage B:" << availableStorageB << QString( "(%1GB)" ).arg( availableStorageB / 1024 / 1024 / 1024 ) << "for" << convenienceName( candidate ) << " length:" << candidate->length() << " sectorsUsed:" << candidate->sectorsUsed() << " fsType:" << candidate->fileSystem().name(); @@ -175,7 +175,7 @@ canBeResized( Partition* candidate ) } else { - cDebug() << Logger::SubEntry() << "NO, requiredStorageGB is not set correctly."; + cDebug() << Logger::SubEntry << "NO, requiredStorageGB is not set correctly."; return false; } } @@ -198,10 +198,10 @@ canBeResized( PartitionCoreModule* core, const QString& partitionPath ) return canBeResized( candidate ); } } - cDebug() << Logger::SubEntry() << "no Partition* found for" << partitionWithOs; + cDebug() << Logger::SubEntry << "no Partition* found for" << partitionWithOs; } - cDebug() << Logger::SubEntry() << "Partition" << partitionWithOs << "CANNOT BE RESIZED FOR AUTOINSTALL."; + cDebug() << Logger::SubEntry << "Partition" << partitionWithOs << "CANNOT BE RESIZED FOR AUTOINSTALL."; return false; } diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index edeee11a6..fc57d1fad 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -1238,12 +1238,12 @@ ChoicePage::setupActions() { if ( PartUtils::canBeResized( *it ) ) { - cDebug() << Logger::SubEntry() << "contains resizable" << it; + cDebug() << Logger::SubEntry << "contains resizable" << it; atLeastOneCanBeResized = true; } if ( PartUtils::canBeReplaced( *it ) ) { - cDebug() << Logger::SubEntry() << "contains replaceable" << it; + cDebug() << Logger::SubEntry << "contains replaceable" << it; atLeastOneCanBeReplaced = true; } if ( (*it)->isMounted() )