02.06.2015 12:32, Fam Zheng wrote:
> if (ret < 0) {
> - error_report("failed to save vmstate %s", strerror(errno));
> + if (load) {
> + error_report("failed to load vmstate %s", strerror(errno));
> + } else {
> + error_report("failed to save vmstate %s", strerror(errno));
> + }
+ error_report("failed to %s vmstate: %s", load ? "load" : "save",
strerror(errno));
(note also the addition of ":")
(besides what Kevin said).
Thanks,
/mjt
