* [Qemu-devel] [PATCH v2] block/vvfat.c: remove debugging code to reinit stderr if NULL
@ 2014-08-20 15:02 Michael Tokarev
2014-08-21 8:37 ` Kevin Wolf
0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2014-08-20 15:02 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, kwolf, Michael Tokarev, stefanha, peter.maydell
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>
---
block/vvfat.c | 9 ---------
1 file changed, 9 deletions(-)
v2: also remove stderr redefinition
diff --git a/block/vvfat.c b/block/vvfat.c
index 70176b1..1c270b2 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.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH v2] block/vvfat.c: remove debugging code to reinit stderr if NULL
2014-08-20 15:02 [Qemu-devel] [PATCH v2] block/vvfat.c: remove debugging code to reinit stderr if NULL Michael Tokarev
@ 2014-08-21 8:37 ` Kevin Wolf
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2014-08-21 8:37 UTC (permalink / raw)
To: Michael Tokarev; +Cc: qemu-trivial, peter.maydell, qemu-devel, stefanha
Am 20.08.2014 um 17:02 hat Michael Tokarev geschrieben:
> 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>
> ---
> block/vvfat.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> v2: also remove stderr redefinition
Thanks, applied to the block branch.
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-21 8:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 15:02 [Qemu-devel] [PATCH v2] block/vvfat.c: remove debugging code to reinit stderr if NULL Michael Tokarev
2014-08-21 8:37 ` Kevin Wolf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.