diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2011-08-25 09:23:55 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-08-25 15:22:25 +0200 |
commit | 35ee5e39c50fda3e6bd5ded74d57beb6c0276cff (patch) | |
tree | 67eb2a870d4e27254a5cf2789ec63e37b5ba54d8 /block/qcow2-refcount.c | |
parent | 2df4624662103eb007428e6ded3b3496a952b154 (diff) | |
download | qemu-35ee5e39c50fda3e6bd5ded74d57beb6c0276cff.tar.gz qemu-35ee5e39c50fda3e6bd5ded74d57beb6c0276cff.tar.bz2 qemu-35ee5e39c50fda3e6bd5ded74d57beb6c0276cff.zip |
qcow2: use always stderr for debugging
let all DEBUG_ALLOC2 printf goes to stderr
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2-refcount.c')
-rw-r--r-- | block/qcow2-refcount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 2a915be57a..fbf28dac12 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 |