hw/block/onenand: use qemu_log_mask() for reporting
commit9e6e9247a4cfc489b9c9f91b2f2d4a3dfa515446
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 19 Nov 2018 15:29:08 +0000 (19 15:29 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 19 Nov 2018 15:55:11 +0000 (19 15:55 +0000)
tree5aa250c8c56aba4a74904b587eea2ab5b5c3622f
parentfcf5787c02f7f9ff9f314161631c347d6b69b904
hw/block/onenand: use qemu_log_mask() for reporting

Update the onenand device to use qemu_log_mask() for reporting
guest errors and unimplemented features, rather than plain
fprintf() and hw_error().

(We leave the hw_error() in onenand_reset(), as that is
triggered by a failure to read the underlying block device
for the bootRAM, not by guest action.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20181115143535.5885-3-peter.maydell@linaro.org
hw/block/onenand.c