hw/arm/z2: convert DPRINTF to trace events and guest errors
commitfcc554c7afb0613bf1a0a355e8123e818bfaf833
authorManos Pitsidianakis <manos.pitsidianakis@linaro.org>
Mon, 29 Jan 2024 16:09:37 +0000 (29 18:09 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Feb 2024 13:51:58 +0000 (2 13:51 +0000)
treeef005437ca59c9a0404ccc3cbe9e1da72ef54073
parent5e5deca183388c31c28d600e9a2d97792fc1f211
hw/arm/z2: convert DPRINTF to trace events and guest errors

Tracing DPRINTFs to stderr might not be desired. A developer that relies
on trace events should be able to opt-in to each trace event and rely on
QEMU's log redirection, instead of stderr by default.

This commit converts DPRINTFs in this file that are used for tracing
into trace events. DPRINTFs that report guest errors are logged with
LOG_GUEST_ERROR.

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 799c5141c5751cf2341e1d095349612e046424a8.1706544115.git.manos.pitsidianakis@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/trace-events
hw/arm/z2.c