aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/ppc440_pcix.c
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2018-03-13 12:26:56 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-03-18 18:27:23 +1100
commit21a5a442aef89d617fc8e41d4d35f6aee535b8b2 (patch)
treef74b45c6011c3013373e5649ec502f0ca74b4c4e /hw/ppc/ppc440_pcix.c
parent3c3a4e7afa742320412063f324b417f653e549cd (diff)
downloadqemu-21a5a442aef89d617fc8e41d4d35f6aee535b8b2.zip
qemu-21a5a442aef89d617fc8e41d4d35f6aee535b8b2.tar.gz
qemu-21a5a442aef89d617fc8e41d4d35f6aee535b8b2.tar.bz2
ppc440_pcix: Change some error_report to qemu_log_mask(LOG_UNIMP, ...)
Using log unimp is more appropriate for these messages and this also silences them by default so they won't clobber make check output when tests are added for this board. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/ppc440_pcix.c')
-rw-r--r--hw/ppc/ppc440_pcix.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/hw/ppc/ppc440_pcix.c b/hw/ppc/ppc440_pcix.c
index ab2626a..b1307e6 100644
--- a/hw/ppc/ppc440_pcix.c
+++ b/hw/ppc/ppc440_pcix.c
@@ -21,6 +21,7 @@
#include "qemu/osdep.h"
#include "qemu/error-report.h"
+#include "qemu/log.h"
#include "hw/hw.h"
#include "hw/ppc/ppc.h"
#include "hw/ppc/ppc4xx.h"
@@ -286,8 +287,9 @@ static void ppc440_pcix_reg_write4(void *opaque, hwaddr addr,
break;
default:
- error_report("%s: unhandled PCI internal register 0x%lx", __func__,
- (unsigned long)addr);
+ qemu_log_mask(LOG_UNIMP,
+ "%s: unhandled PCI internal register 0x%"HWADDR_PRIx"\n",
+ __func__, addr);
break;
}
}
@@ -377,8 +379,9 @@ static uint64_t ppc440_pcix_reg_read4(void *opaque, hwaddr addr,
break;
default:
- error_report("%s: invalid PCI internal register 0x%lx", __func__,
- (unsigned long)addr);
+ qemu_log_mask(LOG_UNIMP,
+ "%s: invalid PCI internal register 0x%" HWADDR_PRIx "\n",
+ __func__, addr);
val = 0;
}