qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Filip Navara <filip.navara@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] Fix QCOW2 debugging code to compile again
Date: Wed, 24 Jun 2009 19:00:09 +0100	[thread overview]
Message-ID: <20090624180009.GK14121@shareable.org> (raw)
In-Reply-To: <E1MJ9ci-0002Hj-03@lists.gnu.org>

Filip Navara wrote:
> Updated to use C99 comments.

I don't see any _change_ to the use of C99 comments in the patch below.
Some C99 comments are moved from one place to another, that's all.

And some function renaming.

-- Jamie

> Signed-off-by: Filip Navara <filip.navara@gmail.com>
> ---
>  block/qcow2-snapshot.c |    6 +++---
>  block/qcow2.c          |    6 +-----
>  block/qcow2.h          |    4 ++++
>  3 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c
> index e1e4d89..94cb838 100644
> --- a/block/qcow2-snapshot.c
> +++ b/block/qcow2-snapshot.c
> @@ -288,7 +288,7 @@ int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
>      if (qcow_write_snapshots(bs) < 0)
>          goto fail;
>  #ifdef DEBUG_ALLOC
> -    check_refcounts(bs);
> +    qcow2_check_refcounts(bs);
>  #endif
>      return 0;
>   fail:
> @@ -332,7 +332,7 @@ int qcow2_snapshot_goto(BlockDriverState *bs, const char *snapshot_id)
>          goto fail;
>  
>  #ifdef DEBUG_ALLOC
> -    check_refcounts(bs);
> +    qcow2_check_refcounts(bs);
>  #endif
>      return 0;
>   fail:
> @@ -369,7 +369,7 @@ int qcow2_snapshot_delete(BlockDriverState *bs, const char *snapshot_id)
>          return ret;
>      }
>  #ifdef DEBUG_ALLOC
> -    check_refcounts(bs);
> +    qcow2_check_refcounts(bs);
>  #endif
>      return 0;
>  }
> diff --git a/block/qcow2.c b/block/qcow2.c
> index 9acbddf..20c114b 100644
> --- a/block/qcow2.c
> +++ b/block/qcow2.c
> @@ -44,10 +44,6 @@
>    - L2 tables have always a size of one cluster.
>  */
>  
> -//#define DEBUG_ALLOC
> -//#define DEBUG_ALLOC2
> -//#define DEBUG_EXT
> -
>  
>  typedef struct {
>      uint32_t magic;
> @@ -251,7 +247,7 @@ static int qcow_open(BlockDriverState *bs, const char *filename, int flags)
>          goto fail;
>  
>  #ifdef DEBUG_ALLOC
> -    check_refcounts(bs);
> +    qcow2_check_refcounts(bs);
>  #endif
>      return 0;
>  
> diff --git a/block/qcow2.h b/block/qcow2.h
> index d734003..8624e0c 100644
> --- a/block/qcow2.h
> +++ b/block/qcow2.h
> @@ -27,6 +27,10 @@
>  
>  #include "aes.h"
>  
> +//#define DEBUG_ALLOC
> +//#define DEBUG_ALLOC2
> +//#define DEBUG_EXT
> +
>  #define QCOW_MAGIC (('Q' << 24) | ('F' << 16) | ('I' << 8) | 0xfb)
>  #define QCOW_VERSION 2
>  

  reply	other threads:[~2009-06-24 18:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-23 17:17 [Qemu-devel] [PATCH v2] Fix QCOW2 debugging code to compile again Filip Navara
2009-06-24 18:00 ` Jamie Lokier [this message]
2009-06-24 18:02   ` Filip Navara

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=20090624180009.GK14121@shareable.org \
    --to=jamie@shareable.org \
    --cc=filip.navara@gmail.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).