From 0cfca31cac39a03c2f571dd2a243599839c8d07d Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 12 Jul 2017 04:57:22 -0400 Subject: [PATCH] Partitions: improve wording of debug messages --- src/modules/partition/core/DeviceList.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/modules/partition/core/DeviceList.cpp b/src/modules/partition/core/DeviceList.cpp index 307627002..0210747be 100644 --- a/src/modules/partition/core/DeviceList.cpp +++ b/src/modules/partition/core/DeviceList.cpp @@ -58,9 +58,11 @@ isMounted( Device* device ) cDebug() << "Checking for mounted partitions in" << device->deviceNode(); for ( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it ) { - cDebug() << " .." << ( *it )->partitionPath() << "mount" << ( *it )->mountPoint(); if ( ! ( *it )->mountPoint().isEmpty() ) + { + cDebug() << " .." << ( *it )->partitionPath() << "is mounted on" << ( *it )->mountPoint(); return true; + } } return false; } @@ -103,7 +105,7 @@ QList< Device* > getDevices( bool writableOnly ) CoreBackend* backend = CoreBackendManager::self()->backend(); DeviceList devices = backend->scanDevices( true ); - cDebug() << "Winnowing" << devices.count() << "devices."; + cDebug() << "Removing unsuitable devices:" << devices.count() << "candidates."; // Remove the device which contains / from the list for ( DeviceList::iterator it = devices.begin(); it != devices.end(); ) @@ -111,7 +113,7 @@ QList< Device* > getDevices( bool writableOnly ) ( *it )->deviceNode().startsWith( "/dev/zram" ) ) { - cDebug() << " .. Winnowing" << ( ( *it ) ? ( *it )->deviceNode() : QString( "" ) ); + cDebug() << " .. Removing" << ( ( *it ) ? ( *it )->deviceNode() : QString( "" ) ); it = devices.erase( it ); } @@ -121,7 +123,7 @@ QList< Device* > getDevices( bool writableOnly ) isMounted( *it ) ) ) { - cDebug() << " .. Winnowing" << ( ( *it ) ? ( *it )->deviceNode() : QString( "" ) ); + cDebug() << " .. Removing" << ( ( *it ) ? ( *it )->deviceNode() : QString( "" ) ); it = devices.erase( it ); } else