aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2020-01-08 10:03:48 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2020-02-02 14:07:57 +1100
commit3cf4aac0deca8fd58d16dcd64d25821f1521df2b (patch)
treef72b02efae564b4e6ead05e287cf48bf5b32eef8 /hw
parentb1c8c522f457e3f7f30a2c169ef1ebab87f98ded (diff)
downloadqemu-3cf4aac0deca8fd58d16dcd64d25821f1521df2b.zip
qemu-3cf4aac0deca8fd58d16dcd64d25821f1521df2b.tar.gz
qemu-3cf4aac0deca8fd58d16dcd64d25821f1521df2b.tar.bz2
ppc/pnv: improve error logging when a PNOR update fails
Print out the offset at which the error occured. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20200108090348.21224-3-clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc/pnv_pnor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ppc/pnv_pnor.c b/hw/ppc/pnv_pnor.c
index 060c6e6..c365ee5 100644
--- a/hw/ppc/pnv_pnor.c
+++ b/hw/ppc/pnv_pnor.c
@@ -47,7 +47,8 @@ static void pnv_pnor_update(PnvPnor *s, int offset, int size)
ret = blk_pwrite(s->blk, offset, s->storage + offset,
offset_end - offset, 0);
if (ret < 0) {
- error_report("Could not update PNOR: %s", strerror(-ret));
+ error_report("Could not update PNOR offset=0x%" PRIx32" : %s", offset,
+ strerror(-ret));
}
}