qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: Stefan Weil <weil@mail.berlios.de>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH] darwin-user: Use GCC_FMT_ATTR (format checking)
Date: Sat, 4 Dec 2010 20:53:38 +0000	[thread overview]
Message-ID: <AANLkTin8-39t4SbEzJKY8MiVVjv5-fjf_Jx-Akxz6J7S@mail.gmail.com> (raw)
In-Reply-To: <1289851248-20687-1-git-send-email-weil@mail.berlios.de>

Thanks, applied.

On Mon, Nov 15, 2010 at 8:00 PM, Stefan Weil <weil@mail.berlios.de> wrote:
> The redundant forward declaration of qerror in machload.c
> is removed because it should be taken from qemu.h.
>
> Please note that this patch is untested because
> I have no matching environment to compile it.
>
> Cc: Blue Swirl <blauwirbel@gmail.com>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
> ---
>  darwin-user/machload.c |    2 +-
>  darwin-user/qemu.h     |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/darwin-user/machload.c b/darwin-user/machload.c
> index 4bb5c72..3bc3b65 100644
> --- a/darwin-user/machload.c
> +++ b/darwin-user/machload.c
> @@ -82,7 +82,7 @@ void *macho_text_sect = 0;
>  int   macho_offset = 0;
>
>  int load_object(const char *filename, struct target_pt_regs * regs, void ** mh);
> -void qerror(const char *format, ...);
> +
>  #ifdef TARGET_I386
>  typedef struct mach_i386_thread_state {
>     unsigned int    eax;
> diff --git a/darwin-user/qemu.h b/darwin-user/qemu.h
> index 0c5081b..b6d3e6c 100644
> --- a/darwin-user/qemu.h
> +++ b/darwin-user/qemu.h
> @@ -100,7 +100,7 @@ int do_sigaction(int sig, const struct sigaction *act,
>  int do_sigaltstack(const struct sigaltstack *ss, struct sigaltstack *oss);
>
>  void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
> -void qerror(const char *fmt, ...);
> +void qerror(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
>
>  void write_dt(void *ptr, unsigned long addr, unsigned long limit, int flags);
>
> --
> 1.7.2.3
>
>

      reply	other threads:[~2010-12-04 20:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-15 20:00 [Qemu-devel] [PATCH] darwin-user: Use GCC_FMT_ATTR (format checking) Stefan Weil
2010-12-04 20:53 ` 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=AANLkTin8-39t4SbEzJKY8MiVVjv5-fjf_Jx-Akxz6J7S@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=weil@mail.berlios.de \
    /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).