From: Gonglei <arei.gonglei@huawei.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: "qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
"pbonzini@redhat.com" <pbonzini@redhat.com>,
"mst@redhat.com" <mst@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Huangpeng (Peter)" <peter.huangpeng@huawei.com>
Subject: Re: [Qemu-devel] [PATCH 2/2] acpi-build: Make DPRINTF working for acpi-build
Date: Thu, 13 Nov 2014 16:10:07 +0800 [thread overview]
Message-ID: <5464675F.8070906@huawei.com> (raw)
In-Reply-To: <871tp7o7fo.fsf@blackfin.pond.sub.org>
On 2014/11/13 16:01, Markus Armbruster wrote:
> <arei.gonglei@huawei.com> writes:
>
>> From: Gonglei <arei.gonglei@huawei.com>
>>
>> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
>> ---
>> hw/i386/acpi-build.c | 18 ++++++++++++------
>> 1 file changed, 12 insertions(+), 6 deletions(-)
>>
>> diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
>> index 4ab44bf..8cec9aa 100644
>> --- a/hw/i386/acpi-build.c
>> +++ b/hw/i386/acpi-build.c
>> @@ -67,6 +67,14 @@
>>
>> #define ACPI_BUILD_TABLE_SIZE 0x20000
>>
>> +/* #define DEBUG_ACPI_BUILD */
>> +#ifdef DEBUG_ACPI_BUILD
>> +#define ACPI_BUILD_DPRINTF(fmt, ...) \
>> + do {printf("ACPI_BUILD: " fmt, ## __VA_ARGS__); } while (0)
>> +#else
>> +#define ACPI_BUILD_DPRINTF(fmt, ...)
>> +#endif
>> +
>> typedef struct AcpiCpuInfo {
>> DECLARE_BITMAP(found_cpus, ACPI_CPU_HOTPLUG_ID_LIMIT);
>> } AcpiCpuInfo;
>> @@ -245,8 +253,6 @@ static void acpi_get_pci_info(PcPciInfo *info)
>> #define ACPI_BUILD_APPNAME6 "BOCHS "
>> #define ACPI_BUILD_APPNAME4 "BXPC"
>>
>> -#define ACPI_BUILD_DPRINTF(level, fmt, ...) do {} while (0)
>> -
>> #define ACPI_BUILD_TABLE_FILE "etc/acpi/tables"
>> #define ACPI_BUILD_RSDP_FILE "etc/acpi/rsdp"
>> #define ACPI_BUILD_TPMLOG_FILE "etc/tpm/log"
>
> Have you considered replacing ACPI_BUILD_DPRINTF() by tracepoints?
>
> [...]
Not yet. I just think the change is simpler at this time ;)
Maybe we can improve the file's log by tracing framework.
Best regards,
-Gonglei
next prev parent reply other threads:[~2014-11-13 8:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 2:59 [Qemu-devel] [PATCH 0/2] acpi-build: trivial fixes arei.gonglei
2014-11-13 2:59 ` [Qemu-devel] [PATCH 1/2] acpi-build: adjust indention 8 -> 4 spaces arei.gonglei
2014-11-13 2:59 ` [Qemu-devel] [PATCH 2/2] acpi-build: Make DPRINTF working for acpi-build arei.gonglei
2014-11-13 8:01 ` Markus Armbruster
2014-11-13 8:10 ` Gonglei [this message]
2014-12-10 8:18 ` [Qemu-devel] [Qemu-trivial] [PATCH 0/2] acpi-build: trivial fixes Michael Tokarev
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=5464675F.8070906@huawei.com \
--to=arei.gonglei@huawei.com \
--cc=armbru@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.huangpeng@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/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).