More debug output in CreatePartitionTableJob

This commit is contained in:
Teo Mrnjavac 2014-11-27 14:21:29 +01:00
parent ac5cecee19
commit 0c3f88077d

View File

@ -64,6 +64,9 @@ CreatePartitionTableJob::exec()
}
QScopedPointer< PartitionTable > table( createTable() );
cDebug() << "Creating new partition table of type" << table->typeName()
<< ", uncommitted yet:\n" << table;
bool ok = backendDevice->createPartitionTable( report, *table );
if ( !ok )
{
@ -93,6 +96,8 @@ CreatePartitionTableJob::updatePreview()
PartitionTable*
CreatePartitionTableJob::createTable()
{
cDebug() << "CreatePartitionTableJob::createTable trying to make table for device"
<< m_device->deviceNode();
return new PartitionTable( m_type,
PartitionTable::defaultFirstUsable( *m_device, m_type ),
PartitionTable::defaultLastUsable( *m_device, m_type )