hw/net/smc91c111: Use qemu_log_mask(UNIMP) instead of fprintf

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 20180624040609.17572-15-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2018-06-26 17:50:41 +01:00 committed by Peter Maydell
parent b9992d122d
commit 637e5d86fc

View File

@ -362,10 +362,14 @@ static void smc91c111_writeb(void *opaque, hwaddr offset,
SET_HIGH(gpr, value);
return;
case 12: /* Control */
if (value & 1)
fprintf(stderr, "smc91c111:EEPROM store not implemented\n");
if (value & 2)
fprintf(stderr, "smc91c111:EEPROM reload not implemented\n");
if (value & 1) {
qemu_log_mask(LOG_UNIMP,
"smc91c111: EEPROM store not implemented\n");
}
if (value & 2) {
qemu_log_mask(LOG_UNIMP,
"smc91c111: EEPROM reload not implemented\n");
}
value &= ~3;
SET_LOW(ctr, value);
return;