Re: [PATCH v6 25/27] util: add support for formatting a program name in messages

Peter Maydell <[email protected]> Wed, 25 Feb 2026 17:43:45 +0000
Newsgroups org.nongnu.qemu-rust,org.nongnu.qemu-devel
Message-ID <CAFEAcA-AgvQESekxEYr_Y85qPzRQAfWvZwbM-WjemEU+tOmBdA@mail.gmail.com>
On Wed, 25 Feb 2026 at 16:38, Daniel P. BerrangĂ© <[email protected]> wrote:
>
> On Thu, Feb 19, 2026 at 10:23:36AM +0000, Peter Maydell wrote:
> > Why do we care about the qemu_log output matching the
> > error-report output? The logs are expected to be
> > quite frequent, to only be there if you've explicitly
> > turned them on, and to be usually directed to a log file.
>
> Personally I never use the log-to-file facility. Instead typical use
> case is relying on the trace points 'log' facility as illustrated in
> the commit message example to dump to stderr for simple debugging,
> and having consistent formatting between the logs & errors is useful
> there.

Do you not find that the tracepoint output is often just too big
to be manageable via stderr? (To take a random example, the last
thing I did with tracepoint logging produced a file 196MB large
for a not very long run of the guest.)

-- PMM