summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2014-08-20 19:02:38 +0400
committerKevin Wolf <kwolf@redhat.com>2014-08-21 10:36:29 +0200
commit13b552c2f43298a42e26d7aec7b58a5c205b75a0 (patch)
tree2f422c0d86da2250d2fd5b668d7b7162b67e09be
parent911864c6e5f58a86ac987aa4d2e5743851374c05 (diff)
downloadqemu-13b552c2f43298a42e26d7aec7b58a5c205b75a0.tar.gz
block/vvfat.c: remove debugging code to reinit stderr if NULL
Just log to stderr unconditionally, like other similar code does. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--block/vvfat.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/block/vvfat.c b/block/vvfat.c
index e56f766338..731e591ec1 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -52,10 +52,6 @@
#define DLOG(a) a
-#undef stderr
-#define stderr STDERR
-FILE* stderr = NULL;
-
static void checkpoint(void);
#ifdef __MINGW32__
@@ -1082,11 +1078,6 @@ static int vvfat_open(BlockDriverState *bs, QDict *options, int flags,
vvv = s;
#endif
-DLOG(if (stderr == NULL) {
- stderr = fopen("vvfat.log", "a");
- setbuf(stderr, NULL);
-})
-
opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
qemu_opts_absorb_qdict(opts, options, &local_err);
if (local_err) {