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] rc4030: Fix compilation error in debug code
Date: Sun, 3 Oct 2010 07:51:20 +0000 [thread overview]
Message-ID: <AANLkTim08sdXQu6DS4UC+wiZEpe_Zo=fo9OPvtR4qCWN@mail.gmail.com> (raw)
In-Reply-To: <1285877142-15237-1-git-send-email-weil@mail.berlios.de>
Thanks, applied.
On Thu, Sep 30, 2010 at 8:05 PM, Stefan Weil <weil@mail.berlios.de> wrote:
> min was unknown here, so avoid it.
>
> Cc: Blue Swirl <blauwirbel@gmail.com>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
> ---
> hw/rc4030.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/hw/rc4030.c b/hw/rc4030.c
> index 2231373..abbc3eb 100644
> --- a/hw/rc4030.c
> +++ b/hw/rc4030.c
> @@ -749,7 +749,10 @@ static void rc4030_do_dma(void *opaque, int n, uint8_t *buf, int len, int is_wri
> printf("rc4030 dma: Copying %d bytes %s host %p\n",
> len, is_write ? "from" : "to", buf);
> for (i = 0; i < len; i += 16) {
> - int n = min(16, len - i);
> + int n = 16;
> + if (n > len - i) {
> + n = len - i;
> + }
> for (j = 0; j < n; j++)
> printf("%02x ", buf[i + j]);
> while (j++ < 16)
> --
> 1.7.1
>
>
prev parent reply other threads:[~2010-10-03 7:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-30 20:05 [Qemu-devel] [PATCH] rc4030: Fix compilation error in debug code Stefan Weil
2010-10-03 7:51 ` 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='AANLkTim08sdXQu6DS4UC+wiZEpe_Zo=fo9OPvtR4qCWN@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).