[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] linux-user: Add -stracefile to log strace e
From: |
Riku Voipio |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] linux-user: Add -stracefile to log strace elsewhere than stderr |
Date: |
Fri, 1 Jun 2012 05:12:46 +0300 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Jun 01, 2012 at 01:49:26AM +0100, Peter Maydell wrote:
> On 31 May 2012 20:37, Richard Henderson <address@hidden> wrote:
> > void gemu_log(const char *fmt, ...)
> > {
> > va_list ap;
> >
> > va_start(ap, fmt);
> > - vfprintf(stderr, fmt, ap);
> > + vfprintf(strace_log_file, fmt, ap);
> > va_end(ap);
> > }
> gemu_log() is used for more than just strace output... are
> we happy for the various other random error messages to go
> to the "strace log" file too?
Perhaps it would make more sense to introduce a "-d strace" loglevel
and use the standard qemu_log feature? Then the output file would be
set with the -D option.
Riku