[partition] Improve logging while collecting devices
This commit is contained in:
parent
cf341c53fa
commit
a57a1fdbd8
@ -255,13 +255,22 @@ PartitionCoreModule::doInit()
|
|||||||
DeviceList devices = PartUtils::getDevices( PartUtils::DeviceType::WritableOnly );
|
DeviceList devices = PartUtils::getDevices( PartUtils::DeviceType::WritableOnly );
|
||||||
|
|
||||||
cDebug() << "LIST OF DETECTED DEVICES:";
|
cDebug() << "LIST OF DETECTED DEVICES:";
|
||||||
cDebug() << "node\tcapacity\tname\tprettyName";
|
cDebug() << Logger::SubEntry << "node\tcapacity\tname\tprettyName";
|
||||||
for ( auto device : devices )
|
for ( auto device : devices )
|
||||||
|
{
|
||||||
|
cDebug() << Logger::SubEntry << Logger::Pointer(device);
|
||||||
|
if ( device )
|
||||||
{
|
{
|
||||||
// Gives ownership of the Device* to the DeviceInfo object
|
// Gives ownership of the Device* to the DeviceInfo object
|
||||||
auto deviceInfo = new DeviceInfo( device );
|
auto deviceInfo = new DeviceInfo( device );
|
||||||
m_deviceInfos << deviceInfo;
|
m_deviceInfos << deviceInfo;
|
||||||
cDebug() << device->deviceNode() << device->capacity() << device->name() << device->prettyName();
|
cDebug() << Logger::SubEntry << device->deviceNode() << device->capacity() << device->name()
|
||||||
|
<< device->prettyName();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cDebug() << Logger::SubEntry << "(skipped null device)";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cDebug() << Logger::SubEntry << devices.count() << "devices detected.";
|
cDebug() << Logger::SubEntry << devices.count() << "devices detected.";
|
||||||
m_deviceModel->init( devices );
|
m_deviceModel->init( devices );
|
||||||
|
Loading…
Reference in New Issue
Block a user