hpet: Report warnings with warn_report(), not error_printf()

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190417190641.26814-7-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2019-04-17 21:06:32 +02:00
parent eaf27fab21
commit d081cedd68

View File

@ -744,7 +744,7 @@ static void hpet_realize(DeviceState *dev, Error **errp)
HPETTimer *timer; HPETTimer *timer;
if (!s->intcap) { if (!s->intcap) {
error_printf("Hpet's intcap not initialized.\n"); warn_report("Hpet's intcap not initialized");
} }
if (hpet_cfg.count == UINT8_MAX) { if (hpet_cfg.count == UINT8_MAX) {
/* first instance */ /* first instance */