From: Philippe Mathieu-Daudé <[email protected]>
Fixes: f5918a99283 ("microvm: add device tree support.")
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Sergio Lopez <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
---
hw/i386/microvm-dt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/i386/microvm-dt.c b/hw/i386/microvm-dt.c
index 875ba9196394..6ee6c42904d2 100644
--- a/hw/i386/microvm-dt.c
+++ b/hw/i386/microvm-dt.c
@@ -327,7 +327,9 @@ void dt_setup_microvm(MicrovmMachineState *mms)
dt_setup_sys_bus(mms);
/* add to fw_cfg */
- fprintf(stderr, "%s: add etc/fdt to fw_cfg\n", __func__);
+ if (debug) {
+ fprintf(stderr, "%s: add etc/fdt to fw_cfg\n", __func__);
+ }
fw_cfg_add_file(x86ms->fw_cfg, "etc/fdt", mms->fdt, size);
if (debug) {
--
2.33.1