[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:
parent
fd4bc4bb17
commit
54108d2bab
@ -68,7 +68,7 @@ CreatePartitionTableJob::prettyStatusMessage() const
|
|||||||
|
|
||||||
|
|
||||||
static inline QDebug&
|
static inline QDebug&
|
||||||
operator <<( QDebug& s, PartitionIterator& it )
|
operator <<( QDebug&& s, PartitionIterator& it )
|
||||||
{
|
{
|
||||||
s << ( ( *it ) ? ( *it )->deviceNode() : QString( "<null device>" ) );
|
s << ( ( *it ) ? ( *it )->deviceNode() : QString( "<null device>" ) );
|
||||||
return s;
|
return s;
|
||||||
@ -89,7 +89,7 @@ CreatePartitionTableJob::exec()
|
|||||||
{
|
{
|
||||||
for ( auto it = PartitionIterator::begin( table );
|
for ( auto it = PartitionIterator::begin( table );
|
||||||
it != PartitionIterator::end( table ); ++it )
|
it != PartitionIterator::end( table ); ++it )
|
||||||
cDebug() << *it;
|
cDebug() << it;
|
||||||
|
|
||||||
QProcess lsblk;
|
QProcess lsblk;
|
||||||
lsblk.setProgram( "lsblk" );
|
lsblk.setProgram( "lsblk" );
|
||||||
|
Loading…
Reference in New Issue
Block a user