qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: stefanha@linux.vnet.ibm.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 1/1] qemu-img: Deprecate obsolete -6 and -e options
Date: Tue, 07 Dec 2010 17:17:58 +0100	[thread overview]
Message-ID: <4CFE5E36.9020000@redhat.com> (raw)
In-Reply-To: <4CFE5A79.8000909@redhat.com>

On 12/07/10 17:02, Kevin Wolf wrote:
>> @@ -323,11 +310,13 @@ static int img_create(int argc, char **argv)
>>              fmt = optarg;
>>              break;
>>          case 'e':
>> -            flags |= BLOCK_FLAG_ENCRYPT;
>> -            break;
>> +            printf("qemu-img: option -e is deprecated, please use \'-o "
>> +                   "encryption\' instead!\n");
>> +            return -1;
> 
> The return value of this function is used as exit code of qemu-img, so 1
> is probably better than -1.
> 
> Also, is there a reason why you use printf and not error (which writes
> the message to stderr)?

I looked for fprintf(stderr.... and found nothing so I used printf()
instead. I'm happy to change it to use error() and the return value too.

Thanks for the feedback.

Cheers,
Jes

      reply	other threads:[~2010-12-07 16:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07 11:31 [Qemu-devel] [PATCH 1/1] qemu-img: Deprecate obsolete -6 and -e options Jes.Sorensen
2010-12-07 16:02 ` [Qemu-devel] " Kevin Wolf
2010-12-07 16:17   ` Jes Sorensen [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=4CFE5E36.9020000@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@linux.vnet.ibm.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 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).