Received: from eggs.gnu.org ([2001:4830:134:3::10]:58648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJLJn-0005ku-0D for qemu-devel@nongnu.org; Mon, 18 Aug 2014 07:41:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJLJi-0007jc-1K for qemu-devel@nongnu.org; Mon, 18 Aug 2014 07:41:42 -0400 From: Michael Tokarev Date: Mon, 18 Aug 2014 15:41:36 +0400 Message-Id: <1408362096-10482-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PATCH] block/vvfat.c: remove debugging code to reinit stderr if NULL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org Cc: Li Liu , Michael Tokarev , zhanghailiang Just log to stderr unconditionally, like other similar code does. Signed-off-by: Michael Tokarev --- block/vvfat.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 70176b1..ea37023 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -1082,11 +1082,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) { -- 1.7.10.4