From e0ce500f365e5cdf972f101f757aa5ca8322bc28 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 12 Nov 2018 16:31:30 +0100 Subject: [PATCH] [partition] Improve debug-output after os-prober --- src/modules/partition/core/PartUtils.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/partition/core/PartUtils.cpp b/src/modules/partition/core/PartUtils.cpp index b1b9ec9de..f50236eff 100644 --- a/src/modules/partition/core/PartUtils.cpp +++ b/src/modules/partition/core/PartUtils.cpp @@ -281,7 +281,6 @@ runOsprober( PartitionCoreModule* core ) osprober.readAllStandardOutput() ).trimmed() ); } - QString osProberReport( "Osprober lines, clean:\n" ); QStringList osproberCleanLines; OsproberEntryList osproberEntries; const auto lines = osproberOutput.split( '\n' ); @@ -313,8 +312,11 @@ runOsprober( PartitionCoreModule* core ) osproberCleanLines.append( line ); } } - osProberReport.append( osproberCleanLines.join( '\n' ) ); - cDebug() << osProberReport; + + if ( osproberCleanLines.count() > 0 ) + cDebug() << "os-prober lines after cleanup:" << Logger::DebugList( osproberCleanLines ); + else + cDebug() << "os-prober gave no output."; Calamares::JobQueue::instance()->globalStorage()->insert( "osproberLines", osproberCleanLines );