[partition] In logging, distinguish more cases
- While winnowing devices, the zram and nullptr cases were mixed together; split them, for the sake of logging more accurately. - While here, fix up some coding-style issues.
This commit is contained in:
parent
d507425128
commit
800f9d34f9
@ -113,8 +113,12 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
|
|||||||
|
|
||||||
// Remove the device which contains / from the list
|
// Remove the device which contains / from the list
|
||||||
for ( DeviceList::iterator it = devices.begin(); it != devices.end(); )
|
for ( DeviceList::iterator it = devices.begin(); it != devices.end(); )
|
||||||
if ( ! ( *it ) ||
|
if ( !( *it ) )
|
||||||
( *it )->deviceNode().startsWith( "/dev/zram" )
|
{
|
||||||
|
cDebug() << " .. Skipping nullptr device";
|
||||||
|
it = erase( devices, it);
|
||||||
|
}
|
||||||
|
else if ( ( *it )->deviceNode().startsWith( "/dev/zram" )
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
cDebug() << " .. Removing zram" << it;
|
cDebug() << " .. Removing zram" << it;
|
||||||
|
Loading…
Reference in New Issue
Block a user