From: "Michael S. Tsirkin" <mst@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org,
qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] nseries: Don't use qemu_hw_version()
Date: Thu, 12 Nov 2015 13:39:24 +0200 [thread overview]
Message-ID: <20151112133747-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <1447278167-320-1-git-send-email-ehabkost@redhat.com>
On Wed, Nov 11, 2015 at 07:42:47PM -0200, Eduardo Habkost wrote:
> nseries doesn't use qemu_set_hw_version() and doesn't need the
> compatibility magic of qemu_hw_version(). Use QEMU_VERSION
> directly.
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This looks very wrong.
We should be reducing the users of QEMU_VERSION,
not adding more.
> ---
> hw/arm/nseries.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c
> index 2a8835e..f1eab73 100644
> --- a/hw/arm/nseries.c
> +++ b/hw/arm/nseries.c
> @@ -1275,7 +1275,7 @@ static int n8x0_atag_setup(void *p, int model)
> strcpy((void *) w, "hw-build"); /* char component[12] */
> w += 6;
> strcpy((void *) w, "QEMU ");
> - pstrcat((void *) w, 12, qemu_hw_version()); /* char version[12] */
> + pstrcat((void *) w, 12, QEMU_VERSION); /* char version[12] */
> w += 6;
>
> tag = (model == 810) ? "1.1.10-qemu" : "1.1.6-qemu";
> --
> 2.1.0
next prev parent reply other threads:[~2015-11-12 11:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-11 21:42 [Qemu-devel] [PATCH] nseries: Don't use qemu_hw_version() Eduardo Habkost
2015-11-12 11:39 ` Michael S. Tsirkin [this message]
2015-11-12 15:04 ` Eduardo Habkost
2015-11-20 16:26 ` 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=20151112133747-mutt-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=ehabkost@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@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).