Devicemanger: Improve error reporting

Improve error reporting when loading a device failed.

Change-Id: I6fdb8b77db10d03651d087aff9417a31ecdb0fdb
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Tobias Hunger
2012-06-20 15:39:50 +02:00
parent 783c53fbd2
commit 0a6e31d831

View File

@@ -328,8 +328,9 @@ const IDeviceFactory *DeviceManager::restoreFactory(const QVariantMap &map)
if (factory->canRestore(map))
return factory;
}
qWarning("Warning: No factory found for device of type '%s'.",
qPrintable(IDevice::typeFromMap(map).toString()));
qWarning("Warning: No factory found for device '%s' of type '%s'.",
qPrintable(IDevice::idFromMap(map).toString()),
qPrintable(IDevice::typeFromMap(map).toString()));
return 0;
}