[partition] Fix up logging of jobs

- Logging `*it` was printing raw pointers, logging (plain) `it`
   needs the specialized logging `operator<<` to DTRT with temporaries.
This commit is contained in:
Adriaan de Groot 2019-05-14 04:49:53 -04:00
parent fd4bc4bb17
commit 54108d2bab

View File

@ -68,7 +68,7 @@ CreatePartitionTableJob::prettyStatusMessage() const
static inline QDebug&
operator <<( QDebug& s, PartitionIterator& it )
operator <<( QDebug&& s, PartitionIterator& it )
{
s << ( ( *it ) ? ( *it )->deviceNode() : QString( "<null device>" ) );
return s;
@ -89,7 +89,7 @@ CreatePartitionTableJob::exec()
{
for ( auto it = PartitionIterator::begin( table );
it != PartitionIterator::end( table ); ++it )
cDebug() << *it;
cDebug() << it;
QProcess lsblk;
lsblk.setProgram( "lsblk" );