From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKqCj-0001Z8-Sg for qemu-devel@nongnu.org; Fri, 22 Aug 2014 10:52:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKqCf-0005wU-H9 for qemu-devel@nongnu.org; Fri, 22 Aug 2014 10:52:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKqCf-0005ud-9M for qemu-devel@nongnu.org; Fri, 22 Aug 2014 10:52:33 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7MEqVio017851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 22 Aug 2014 10:52:32 -0400 From: Kevin Wolf Date: Fri, 22 Aug 2014 16:51:46 +0200 Message-Id: <1408719113-5316-23-git-send-email-kwolf@redhat.com> In-Reply-To: <1408719113-5316-1-git-send-email-kwolf@redhat.com> References: <1408719113-5316-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PULL 22/29] 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 Cc: kwolf@redhat.com From: Michael Tokarev Just log to stderr unconditionally, like other similar code does. Signed-off-by: Michael Tokarev Reviewed-by: Peter Maydell Signed-off-by: Kevin Wolf --- block/vvfat.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index e56f766..731e591 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) { -- 1.8.3.1