qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Thomas Huth <thuth@redhat.com>,
	Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org,
	Helge Deller <deller@gmx.de>
Subject: Re: [Qemu-devel] [PULL v5 39/43] hw/hppa: Implement DINO system board
Date: Thu, 1 Feb 2018 21:11:01 +0100	[thread overview]
Message-ID: <20180201201101.GA31191@ls3530.fritz.box> (raw)
In-Reply-To: <90f0c9fa-ee0b-29d3-e39a-fc7391179e3d@redhat.com>

* Thomas Huth <thuth@redhat.com>:
> First kudos for the new hppa-softmmu target!

Thanks Thomas!

> But these debug messages now pop up during "make check-qtest":
> 
> Serial port created at 0xfff83800
> Firmware loaded at 0xf0000000-0xf0023f29, entry at 0xf0000084.
> 
> That's a little bit annoying. Could you please either remove them or
> silence them in qtest mode by adding a check for !qtest_enabled() ?

The patch below fixes it.
Richard, can you apply it?

Helge

-------

target/hppa: Silence debug messages in qtest mode

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index afd3867313..338aa87724 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -12,6 +12,7 @@
 #include "hw/boards.h"
 #include "qemu/error-report.h"
 #include "sysemu/sysemu.h"
+#include "sysemu/qtest.h"
 #include "hw/timer/mc146818rtc.h"
 #include "hw/ide.h"
 #include "hw/timer/i8254.h"
@@ -111,7 +112,9 @@ static void machine_hppa_init(MachineState *machine)
         uint32_t addr = DINO_UART_HPA + 0x800;
         serial_mm_init(addr_space, addr, 0, serial_irq,
                        115200, serial_hds[0], DEVICE_BIG_ENDIAN);
-        fprintf(stderr, "Serial port created at 0x%x\n", addr);
+        if (!qtest_enabled()) {
+            fprintf(stderr, "Serial port created at 0x%x\n", addr);
+        }
     }
 
     /* SCSI disk setup. */
@@ -146,9 +149,11 @@ static void machine_hppa_init(MachineState *machine)
         error_report("could not load firmware '%s'", firmware_filename);
         exit(1);
     }
-    fprintf(stderr, "Firmware loaded at 0x%08" PRIx64 "-0x%08" PRIx64
+    if (!qtest_enabled()) {
+        fprintf(stderr, "Firmware loaded at 0x%08" PRIx64 "-0x%08" PRIx64
             ", entry at 0x%08" PRIx64 ".\n",
             firmware_low, firmware_high, firmware_entry);
+    }
     if (firmware_low < ram_size || firmware_high >= FIRMWARE_END) {
         error_report("Firmware overlaps with memory or IO space");
         exit(1);

  reply	other threads:[~2018-02-01 20:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-30  4:46 [Qemu-devel] [PULL v5 00/43] hppa-softmmu Richard Henderson
2018-01-30  4:46 ` [Qemu-devel] [PULL v5 39/43] hw/hppa: Implement DINO system board Richard Henderson
2018-02-01  9:39   ` Thomas Huth
2018-02-01 20:11     ` Helge Deller [this message]
2021-03-25 23:17   ` Philippe Mathieu-Daudé
2021-03-26 12:29     ` Richard Henderson
2021-03-26 18:44       ` Philippe Mathieu-Daudé
2018-01-30 17:57 ` [Qemu-devel] [PULL v5 00/43] hppa-softmmu Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180201201101.GA31191@ls3530.fritz.box \
    --to=deller@gmx.de \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).