mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00:00
qemu: Fix job entry debug message
Logging current async job while in BeginJob is useful, but the async job we want to start is even more interesting. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
826ce0e77d
commit
53ec39ea63
@ -1476,17 +1476,23 @@ qemuDomainObjBeginJobInternal(virQEMUDriverPtr driver,
|
||||
unsigned long long now;
|
||||
unsigned long long then;
|
||||
bool nested = job == QEMU_JOB_ASYNC_NESTED;
|
||||
bool async = job == QEMU_JOB_ASYNC;
|
||||
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
|
||||
const char *blocker = NULL;
|
||||
int ret = -1;
|
||||
unsigned long long duration = 0;
|
||||
unsigned long long asyncDuration = 0;
|
||||
const char *jobStr;
|
||||
|
||||
VIR_DEBUG("Starting %s: %s (async=%s vm=%p name=%s)",
|
||||
job == QEMU_JOB_ASYNC ? "async job" : "job",
|
||||
qemuDomainJobTypeToString(job),
|
||||
qemuDomainAsyncJobTypeToString(priv->job.asyncJob),
|
||||
obj, obj->def->name);
|
||||
if (async)
|
||||
jobStr = qemuDomainAsyncJobTypeToString(asyncJob);
|
||||
else
|
||||
jobStr = qemuDomainJobTypeToString(job);
|
||||
|
||||
VIR_DEBUG("Starting %s: %s (vm=%p name=%s, current job=%s async=%s)",
|
||||
async ? "async job" : "job", jobStr, obj, obj->def->name,
|
||||
qemuDomainJobTypeToString(priv->job.active),
|
||||
qemuDomainAsyncJobTypeToString(priv->job.asyncJob));
|
||||
|
||||
if (virTimeMillisNow(&now) < 0) {
|
||||
virObjectUnref(cfg);
|
||||
|
Loading…
Reference in New Issue
Block a user