From: Blue Swirl <blauwirbel@gmail.com>
To: Richard Henderson <rth@twiddle.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] hppa: Fix printf warnings in hppa-dis.c.
Date: Sat, 2 Jul 2011 00:10:11 +0300 [thread overview]
Message-ID: <BANLkTimqZPG9WcBzXDz=bVo8OOar6wasRg@mail.gmail.com> (raw)
In-Reply-To: <1308607349-20581-1-git-send-email-rth@twiddle.net>
Thanks, applied.
On Tue, Jun 21, 2011 at 1:02 AM, Richard Henderson <rth@twiddle.net> wrote:
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
> hppa-dis.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/hppa-dis.c b/hppa-dis.c
> index a5760a9..435da73 100644
> --- a/hppa-dis.c
> +++ b/hppa-dis.c
> @@ -1771,13 +1771,13 @@ static const char *const add_compl_names[] = { 0, "", ",l", ",tsv" };
> static void
> fput_reg (unsigned reg, disassemble_info *info)
> {
> - (*info->fprintf_func) (info->stream, reg ? reg_names[reg] : "r0");
> + (*info->fprintf_func) (info->stream, "%s", reg ? reg_names[reg] : "r0");
> }
>
> static void
> fput_fp_reg (unsigned reg, disassemble_info *info)
> {
> - (*info->fprintf_func) (info->stream, reg ? fp_reg_names[reg] : "fr0");
> + (*info->fprintf_func) (info->stream, "%s", reg ? fp_reg_names[reg] : "fr0");
> }
>
> static void
> @@ -1794,7 +1794,7 @@ fput_fp_reg_r (unsigned reg, disassemble_info *info)
> static void
> fput_creg (unsigned reg, disassemble_info *info)
> {
> - (*info->fprintf_func) (info->stream, control_reg[reg]);
> + (*info->fprintf_func) (info->stream, "%s", control_reg[reg]);
> }
>
> /* Print constants with sign. */
> --
> 1.5.6.5
>
>
>
prev parent reply other threads:[~2011-07-01 21:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-20 22:02 [Qemu-devel] [PATCH] hppa: Fix printf warnings in hppa-dis.c Richard Henderson
2011-07-01 21:10 ` Blue Swirl [this message]
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='BANLkTimqZPG9WcBzXDz=bVo8OOar6wasRg@mail.gmail.com' \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).