[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 26/30] qcow2: use always stderr for debugging
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 26/30] qcow2: use always stderr for debugging |
Date: |
Mon, 29 Aug 2011 16:53:34 +0200 |
From: Frediano Ziglio <address@hidden>
let all DEBUG_ALLOC2 printf goes to stderr
Signed-off-by: Frediano Ziglio <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block/qcow2-cluster.c | 2 +-
block/qcow2-refcount.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c
index fde397e..e06be64 100644
--- a/block/qcow2-cluster.c
+++ b/block/qcow2-cluster.c
@@ -53,7 +53,7 @@ int qcow2_grow_l1_table(BlockDriverState *bs, int min_size,
bool exact_size)
}
#ifdef DEBUG_ALLOC2
- printf("grow l1_table from %d to %d\n", s->l1_size, new_l1_size);
+ fprintf(stderr, "grow l1_table from %d to %d\n", s->l1_size, new_l1_size);
#endif
new_l1_size2 = sizeof(uint64_t) * new_l1_size;
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c
index 2a915be..fbf28da 100644
--- a/block/qcow2-refcount.c
+++ b/block/qcow2-refcount.c
@@ -422,7 +422,7 @@ static int QEMU_WARN_UNUSED_RESULT
update_refcount(BlockDriverState *bs,
int ret;
#ifdef DEBUG_ALLOC2
- printf("update_refcount: offset=%" PRId64 " size=%" PRId64 " addend=%d\n",
+ fprintf(stderr, "update_refcount: offset=%" PRId64 " size=%" PRId64 "
addend=%d\n",
offset, length, addend);
#endif
if (length < 0) {
@@ -556,7 +556,7 @@ retry:
}
}
#ifdef DEBUG_ALLOC2
- printf("alloc_clusters: size=%" PRId64 " -> %" PRId64 "\n",
+ fprintf(stderr, "alloc_clusters: size=%" PRId64 " -> %" PRId64 "\n",
size,
(s->free_cluster_index - nb_clusters) << s->cluster_bits);
#endif
--
1.7.6
- [Qemu-devel] [PATCH 20/30] qcow2: remove cluster_offset from QCowAIOCB, (continued)
- [Qemu-devel] [PATCH 20/30] qcow2: remove cluster_offset from QCowAIOCB, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 21/30] qcow2: remove common from QCowAIOCB, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 25/30] sheepdog: use coroutines, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 16/30] qcow: remove old #undefined code, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 17/30] qcow2: Removed unused AIOCB fields, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 18/30] qcow2: removed cur_nr_sectors field in QCowAIOCB, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 22/30] qcow2: reindent and use while before the big jump, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 23/30] qcow2: Removed QCowAIOCB entirely, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 30/30] qemu-img: Require larger zero areas for sparse handling, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 27/30] qcow2: remove unused qcow2_create_refcount_update function, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 26/30] qcow2: use always stderr for debugging,
Kevin Wolf <=
- [Qemu-devel] [PATCH 29/30] block: latency accounting, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 28/30] block: explicit I/O accounting, Kevin Wolf, 2011/08/29
- [Qemu-devel] [PATCH 24/30] qcow2: remove memory leak, Kevin Wolf, 2011/08/29
- Re: [Qemu-devel] [PULL 00/30] Block patches, Anthony Liguori, 2011/08/29