From: Dr. David Alan Gilbert Date: Wed, 3 Jun 2015 16:58:01 +0000 (+0100) Subject: Print error when failing to load PCI config data X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~98^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c59364d0329d36a7759033962a469ca714f884d;p=sdk%2Femulator%2Fqemu.git Print error when failing to load PCI config data When loading migration fails due to a disagreement about PCI config data we don't currently get any errors explaining that was the cause of the problem or which byte in the config data was at fault. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Michael Tokarev --- diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 45394cf..442f822 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -428,6 +428,10 @@ static int get_pci_config_device(QEMUFile *f, void *pv, size_t size) for (i = 0; i < size; ++i) { if ((config[i] ^ s->config[i]) & s->cmask[i] & ~s->wmask[i] & ~s->w1cmask[i]) { + error_report("%s: Bad config data: i=0x%x read: %x device: %x " + "cmask: %x wmask: %x w1cmask:%x", __func__, + i, config[i], s->config[i], + s->cmask[i], s->wmask[i], s->w1cmask[i]); g_free(config); return -EINVAL; }