default:
rc = ERROR_FAIL;
- LOG(ERROR, "Unknown emulator for HVM domain");
+ LOGD(ERROR, dss->domid, "Unknown emulator for HVM domain");
goto err;
}
stream->emu_sub_hdr.index = 0;
goto err;
if (retval) {
- LOGEV(ERROR, errnoval, "saving domain: %s",
+ LOGEVD(ERROR, errnoval, dss->domid, "saving domain: %s",
dss->dsps.guest_responded ?
"domain responded to suspend request" :
"domain did not respond to suspend request");
stream->emu_carefd = libxl__carefd_opened(CTX, readfd);
if (readfd == -1) {
rc = ERROR_FAIL;
- LOGE(ERROR, "unable to open %s", filename);
+ LOGED(ERROR, dss->domid, "unable to open %s", filename);
goto err;
}
if (fstat(readfd, &st)) {
rc = ERROR_FAIL;
- LOGE(ERROR, "unable to fstat %s", filename);
+ LOGED(ERROR, dss->domid, "unable to fstat %s", filename);
goto err;
}
if (!S_ISREG(st.st_mode)) {
rc = ERROR_FAIL;
- LOG(ERROR, "%s is not a plain file!", filename);
+ LOGD(ERROR, dss->domid, "%s is not a plain file!", filename);
goto err;
}