提交 14899cdf 编写于 作者: F Filip Navara 提交者: Anthony Liguori

Fix QCOW2 debugging code to compile again

Updated to use C99 comments.
Signed-off-by: NFilip Navara <filip.navara@gmail.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 bf011293
...@@ -288,7 +288,7 @@ int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info) ...@@ -288,7 +288,7 @@ int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
if (qcow_write_snapshots(bs) < 0) if (qcow_write_snapshots(bs) < 0)
goto fail; goto fail;
#ifdef DEBUG_ALLOC #ifdef DEBUG_ALLOC
check_refcounts(bs); qcow2_check_refcounts(bs);
#endif #endif
return 0; return 0;
fail: fail:
...@@ -332,7 +332,7 @@ int qcow2_snapshot_goto(BlockDriverState *bs, const char *snapshot_id) ...@@ -332,7 +332,7 @@ int qcow2_snapshot_goto(BlockDriverState *bs, const char *snapshot_id)
goto fail; goto fail;
#ifdef DEBUG_ALLOC #ifdef DEBUG_ALLOC
check_refcounts(bs); qcow2_check_refcounts(bs);
#endif #endif
return 0; return 0;
fail: fail:
...@@ -369,7 +369,7 @@ int qcow2_snapshot_delete(BlockDriverState *bs, const char *snapshot_id) ...@@ -369,7 +369,7 @@ int qcow2_snapshot_delete(BlockDriverState *bs, const char *snapshot_id)
return ret; return ret;
} }
#ifdef DEBUG_ALLOC #ifdef DEBUG_ALLOC
check_refcounts(bs); qcow2_check_refcounts(bs);
#endif #endif
return 0; return 0;
} }
......
...@@ -44,10 +44,6 @@ ...@@ -44,10 +44,6 @@
- L2 tables have always a size of one cluster. - L2 tables have always a size of one cluster.
*/ */
//#define DEBUG_ALLOC
//#define DEBUG_ALLOC2
//#define DEBUG_EXT
typedef struct { typedef struct {
uint32_t magic; uint32_t magic;
...@@ -251,7 +247,7 @@ static int qcow_open(BlockDriverState *bs, const char *filename, int flags) ...@@ -251,7 +247,7 @@ static int qcow_open(BlockDriverState *bs, const char *filename, int flags)
goto fail; goto fail;
#ifdef DEBUG_ALLOC #ifdef DEBUG_ALLOC
check_refcounts(bs); qcow2_check_refcounts(bs);
#endif #endif
return 0; return 0;
......
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
#include "aes.h" #include "aes.h"
//#define DEBUG_ALLOC
//#define DEBUG_ALLOC2
//#define DEBUG_EXT
#define QCOW_MAGIC (('Q' << 24) | ('F' << 16) | ('I' << 8) | 0xfb) #define QCOW_MAGIC (('Q' << 24) | ('F' << 16) | ('I' << 8) | 0xfb)
#define QCOW_VERSION 2 #define QCOW_VERSION 2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册