mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
[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
1 changed files with 2 additions and 2 deletions
|
@ -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" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue