if (rc) goto out;
if (!got_ret || strcmp(got, got_ret)) {
- LOG(ERROR,"controlling logdirty: qemu was already sent"
- " command `%s' (xenstore path `%s') but result is `%s'",
- got, lds->cmd_path, got_ret ? got_ret : "<none>");
+ LOGD(ERROR, domid, "controlling logdirty: qemu was already sent"
+ " command `%s' (xenstore path `%s') but result is `%s'",
+ got, lds->cmd_path, got_ret ? got_ret : "<none>");
rc = ERROR_FAIL;
goto out;
}
return;
out:
- LOG(ERROR,"logdirty switch failed (rc=%d), abandoning suspend",rc);
+ LOGD(ERROR, domid, "logdirty switch failed (rc=%d), abandoning suspend",rc);
libxl__xs_transaction_abort(gc, &t);
switch_logdirty_done(egc,lds,rc);
}
rc = libxl__qmp_set_global_dirty_log(gc, domid, enable);
if (rc)
- LOG(ERROR,"logdirty switch failed (rc=%d), abandoning suspend",rc);
+ LOGD(ERROR, domid,
+ "logdirty switch failed (rc=%d), abandoning suspend",rc);
lds->callback(egc, lds, rc);
}
lds->callback(egc, lds, 0);
break;
default:
- LOG(ERROR,"logdirty switch failed"
- ", no valid device model version found, abandoning suspend");
+ LOGD(ERROR, domid, "logdirty switch failed"
+ ", no valid device model version found, abandoning suspend");
lds->callback(egc, lds, ERROR_FAIL);
}
}
libxl__domain_suspend_state *dsps = &dss->dsps;
if (dss->checkpointed_stream != LIBXL_CHECKPOINTED_STREAM_NONE && !r_info) {
- LOG(ERROR, "Migration stream is checkpointed, but there's no "
- "checkpoint info!");
+ LOGD(ERROR, domid, "Migration stream is checkpointed, but there's no "
+ "checkpoint info!");
rc = ERROR_INVAL;
goto out;
}
ret = xc_domain_getvnuma(CTX->xch, domid, &nr_vnodes, &nr_vmemranges,
&nr_vcpus, NULL, NULL, NULL);
if (ret != -1 || errno != EOPNOTSUPP) {
- LOG(ERROR, "Cannot save a guest with vNUMA configured");
+ LOGD(ERROR, domid, "Cannot save a guest with vNUMA configured");
rc = ERROR_FAIL;
goto out;
}
/* Sanitise 'key'. */
if (!next) {
rc = ERROR_FAIL;
- LOG(ERROR, "Key in xenstore data not NUL terminated");
+ LOGD(ERROR, domid, "Key in xenstore data not NUL terminated");
goto out;
}
if (key[0] == '\0') {
rc = ERROR_FAIL;
- LOG(ERROR, "empty key found in xenstore data");
+ LOGD(ERROR, domid, "empty key found in xenstore data");
goto out;
}
if (key[0] == '/') {
rc = ERROR_FAIL;
- LOG(ERROR, "Key in xenstore data not relative");
+ LOGD(ERROR, domid, "Key in xenstore data not relative");
goto out;
}
/* Sanitise 'val'. */
if (!next) {
rc = ERROR_FAIL;
- LOG(ERROR, "Val in xenstore data not NUL terminated");
+ LOGD(ERROR, domid, "Val in xenstore data not NUL terminated");
goto out;
}