From: Luiz Capitulino <lcapitulino@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: kwolf@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/3] block: drive_init(): Fix indentation
Date: Fri, 1 Jul 2011 10:24:31 -0300 [thread overview]
Message-ID: <20110701102431.1b6cda41@doriath> (raw)
In-Reply-To: <m3hb7679nt.fsf@blackfin.pond.sub.org>
On Fri, 01 Jul 2011 09:16:38 +0200
Markus Armbruster <armbru@redhat.com> wrote:
> Luiz Capitulino <lcapitulino@redhat.com> writes:
>
> > Some constructions in that function have broken indentation. Fix them.
> >
> > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
> > ---
> > blockdev.c | 52 ++++++++++++++++++++++++++--------------------------
> > 1 files changed, 26 insertions(+), 26 deletions(-)
> >
> > diff --git a/blockdev.c b/blockdev.c
> > index 7d579d6..27bf68a 100644
> > --- a/blockdev.c
> > +++ b/blockdev.c
> > @@ -272,23 +272,23 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
> > if (type == IF_COUNT) {
> > error_report("unsupported bus type '%s'", buf);
> > return NULL;
> > - }
> > + }
>
> Old indentation is correct, apart from tabs.
>
> New indentation is incorrect, and fails to remove tabs.
>
> if (type == IF_COUNT) {
> error_report("unsupported bus type '%s'", buf);
> return NULL;
> }
> ^^^^^^^^ ^
> tab here incorrect indentation
Yeah, I realized that after Stefan's comment.
> Check your editor settings.
>
> I don't see "broken" indentation anywhere in this function. A few lines
> are off: indented 3 instead of 4. If we want to fix such things, I'd
> prefer it done globally.
Ok, I'll drop this patch from the series then and let to do it globally
later.
next prev parent reply other threads:[~2011-07-01 13:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-30 18:33 [Qemu-devel] [PATCH 0/3]: block: Small drive_init() improvements Luiz Capitulino
2011-06-30 18:33 ` [Qemu-devel] [PATCH 1/3] block: drive_init(): Fix indentation Luiz Capitulino
2011-06-30 20:32 ` Stefan Weil
2011-07-01 7:16 ` Markus Armbruster
2011-07-01 13:24 ` Luiz Capitulino [this message]
2011-06-30 18:33 ` [Qemu-devel] [PATCH 2/3] block: drive_init(): Simplify interface type setting Luiz Capitulino
2011-07-01 7:18 ` Markus Armbruster
2011-06-30 18:33 ` [Qemu-devel] [PATCH 3/3] block: drive_init(): Improve CHS setting error message Luiz Capitulino
2011-07-01 7:21 ` Markus Armbruster
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=20110701102431.1b6cda41@doriath \
--to=lcapitulino@redhat.com \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.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).