From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] upgrading emulated UART to 16550A
Date: Fri, 08 Aug 2008 15:36:50 +0100 [thread overview]
Message-ID: <489C5A02.6080101@eu.citrix.com> (raw)
In-Reply-To: <489B45E3.9040005@codemonkey.ws>
Anthony Liguori wrote:
>
> I think the idea was to add a new copyright entry, not to modify
> Fabrice's copyright.
Oops, I am going to fix that.
>> +
>> +#include <termios.h>
>> +#include <sys/ioctl.h>
>>
>
> This doesn't look Windows friendly.
I am going to follow Samuel advice and declare more constants in
qemu-char.h so that we don't need those two headers anymore.
>
> minor nit, but the '{' should be on a new line.
>
...
> More nits, lose the whitespace in the conditions. For instance:
>
> } else if ( ( s->ier & UART_IER_RDI ) => } else if ((s->ier &
> UART_IER_RDI).
>
> The rest of the file uses the later style so it's a little weird to have
> portions of the code be different.
>
...
>
> More bad whitespace.
>
...
>
> This is just nutty :-) Please rewrite this if() statement to be a
> little less obscure.
>
All these style problems will be fixed in the next version.
>> + serial_init_core(s, irq, baudbase, chr);
>> register_savevm("serial", base, 2, serial_save, serial_load, s);
>>
>
> Isn't it necessary to bump the savevm() version number since you've
> changed the format.
>
Yes, you are right.
Thanks for this very helpful review.
next prev parent reply other threads:[~2008-08-08 14:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 17:35 [Qemu-devel] [PATCH] upgrading emulated UART to 16550A Stefano Stabellini
2008-08-07 18:58 ` Anthony Liguori
2008-08-07 21:02 ` Samuel Thibault
2008-08-07 21:13 ` Anthony Liguori
2008-08-07 21:39 ` Samuel Thibault
2008-08-08 14:36 ` Stefano Stabellini [this message]
2008-08-07 19:26 ` Jason Wessel
-- strict thread matches above, loose matches on Subject: below --
2008-08-08 16:58 Stefano Stabellini
2008-08-09 18:26 ` Anthony Liguori
2008-08-09 18:44 ` Samuel Thibault
2008-08-11 14:17 ` Anthony Liguori
2008-08-08 14:55 Stefano Stabellini
2008-08-08 15:15 ` Stefano Stabellini
2008-08-05 13:15 Stefano Stabellini
2008-08-05 13:57 ` Thiemo Seufer
2008-08-05 14:17 ` Stefano Stabellini
2008-08-05 15:02 ` Jason Wessel
2008-08-05 15:15 ` Stefano Stabellini
2008-08-06 2:28 ` Anthony Liguori
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=489C5A02.6080101@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--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).