From: Luiz Capitulino <lcapitulino@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Shahar Havivi <shaharh@redhat.com>,
Dor Laor <dlaor@redhat.com>,
qemu-devel@nongnu.org, Luiz@gnu.org,
Capitulino <lcapitul@redhat.com>
Subject: Re: [Qemu-devel] Re: [PATCH] Wrong error message in block_passwd command
Date: Fri, 5 Mar 2010 17:41:15 -0300 [thread overview]
Message-ID: <20100305174115.482dfd64@redhat.com> (raw)
In-Reply-To: <m31vfyd8ay.fsf@blackfin.pond.sub.org>
On Fri, 05 Mar 2010 17:47:49 +0100
Markus Armbruster <armbru@redhat.com> wrote:
> Shahar Havivi <shaharh@redhat.com> writes:
>
> > diff --git a/qerror.c b/qerror.c
> > index 2f657f4..4e63a54 100644
> > --- a/qerror.c
> > +++ b/qerror.c
> > @@ -49,6 +49,10 @@ static const QErrorStringTable qerror_table[] = {
> > .desc = "The %(device) is encrypted",
> > },
> > {
> > + .error_fmt = QERR_DEVICE_NOT_ENCRYPTED,
> > + .desc = "Device '%(device)' is not encrypted",
> > + },
> > + {
> > .error_fmt = QERR_DEVICE_LOCKED,
> > .desc = "Device %(device) is locked",
> > },
> > diff --git a/qerror.h b/qerror.h
> > index ee59615..b93fff6 100644
> > --- a/qerror.h
> > +++ b/qerror.h
> > @@ -46,6 +46,9 @@ QError *qobject_to_qerror(const QObject *obj);
> > #define QERR_DEVICE_ENCRYPTED \
> > "{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }"
> >
> > +#define QERR_DEVICE_NOT_ENCRYPTED \
> > + "{ 'class': 'DeviceNotEncrypted', 'data': { 'device': %s } }"
> > +
> > #define QERR_DEVICE_LOCKED \
> > "{ 'class': 'DeviceLocked', 'data': { 'device': %s } }"
>
> Would you humor me and keep the error definitions sorted? Thanks.
A comment in the file will help.
> PS: Luiz has always put each new error in its own commit, and I followed
> that practice. Not sure we really care.
Well, turns out you were the only one to revert some of them :) So, I'm
ok with either way.
prev parent reply other threads:[~2010-03-05 20:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-05 15:12 [Qemu-devel] [PATCH] Wrong error message in block_passwd command Shahar Havivi
2010-03-05 15:22 ` [Qemu-devel] " Kevin Wolf
2010-03-05 15:47 ` Shahar Havivi
2010-03-05 15:56 ` Luiz Capitulino
2010-03-05 16:47 ` Markus Armbruster
2010-03-05 20:41 ` Luiz Capitulino [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=20100305174115.482dfd64@redhat.com \
--to=lcapitulino@redhat.com \
--cc=Luiz@gnu.org \
--cc=armbru@redhat.com \
--cc=dlaor@redhat.com \
--cc=kwolf@redhat.com \
--cc=lcapitul@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=shaharh@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.