Add log statement when NBD device is setup

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2013-10-08 16:35:15 +01:00
parent 9f53ffcb81
commit 64d4eb6a50

View File

@ -838,6 +838,8 @@ int virFileNBDDeviceAssociate(const char *file,
if (virCommandRun(cmd, NULL) < 0)
goto cleanup;
VIR_DEBUG("Associated NBD device %s with file %s and format %s",
nbddev, file, fmtstr);
*dev = nbddev;
nbddev = NULL;
ret = 0;