i.MX: Standardize i.MX serial debug.
commit8ccce77c04a23a1451b6e149930e66b6eef75926
authorJean-Christophe Dubois <jcd@tribudubois.net>
Sun, 25 Oct 2015 14:16:06 +0000 (25 15:16 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2015 13:16:21 +0000 (27 13:16 +0000)
treed1feb818fbeb89c0aa78bfef314694c3deaf5c03
parent4b280b726a329a97db03323d8d03ed554f7872b8
i.MX: Standardize i.MX serial debug.

The goal is to have debug code always compiled during build.

We standardize all debug output on the following format:

[QOM_TYPE_NAME]reporting_function: debug message

We also replace IPRINTF with qemu_log_mask(). The qemu_log_mask() output
is following the same format as the above debug.

Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Message-id: 47b8759b251d356c633faf7ea34f897f340aea4e.1445781957.git.jcd@tribudubois.net
[PMM: Drop attempt to print the ram_addr of a memory region in
 one DPRINTF, which (a) was using the wrong format string so
 didn't build on 32-bit and (b) was incorrectly looking at a
 private field of a MemoryRegion struct]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/imx_serial.c