if (libxl_defbool_val(info->netbuf)) {
if (!libxl__netbuffer_enabled(gc)) {
- LOG(ERROR, "Remus: No support for network buffering");
+ LOGD(ERROR, dss->domid,
+ "Remus: No support for network buffering");
goto out;
}
cds->device_kind_flags |= (1 << LIBXL__DEVICE_KIND_VIF);
rs->interval = info->interval;
if (init_device_subkind(cds)) {
- LOG(ERROR, "Remus: failed to init device subkind for guest %u",
- dss->domid);
+ LOGD(ERROR, dss->domid,
+ "Remus: failed to init device subkind");
goto out;
}
return;
}
- LOG(ERROR, "Remus: failed to setup device for guest with domid %u, rc %d",
- dss->domid, rc);
+ LOGD(ERROR, dss->domid, "Remus: failed to setup device, rc %d", rc);
cds->callback = remus_setup_failed;
libxl__checkpoint_devices_teardown(egc, cds);
}
STATE_AO_GC(dss->ao);
if (rc)
- LOG(ERROR, "Remus: failed to teardown device after setup failed"
- " for guest with domid %u, rc %d", dss->domid, rc);
+ LOGD(ERROR, dss->domid,
+ "Remus: failed to teardown device after setup failed, rc %d", rc);
cleanup_device_subkind(cds);
EGC_GC;
- LOG(WARN, "Remus: Domain suspend terminated with rc %d,"
- " teardown Remus devices...", rc);
+ LOGD(WARN, dss->domid, "Remus: Domain suspend terminated with rc %d,"
+ " teardown Remus devices...", rc);
cds->callback = remus_teardown_done;
libxl__checkpoint_devices_teardown(egc, cds);
}
STATE_AO_GC(dss->ao);
if (rc)
- LOG(ERROR, "Remus: failed to teardown device for guest with domid %u,"
- " rc %d", dss->domid, rc);
+ LOGD(ERROR, dss->domid, "Remus: failed to teardown device,"
+ " rc %d", rc);
cleanup_device_subkind(cds);
STATE_AO_GC(dss->ao);
if (rc) {
- LOG(ERROR, "Failed to save device model. Terminating Remus..");
+ LOGD(ERROR, dss->domid, "Failed to save device model."
+ " Terminating Remus..");
goto out;
}
STATE_AO_GC(dss->ao);
if (rc) {
- LOG(ERROR, "Failed to do device commit op."
+ LOGD(ERROR, dss->domid, "Failed to do device commit op."
" Terminating Remus..");
goto out;
}