qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Printf message in QEMU source code


From: Peter Crosthwaite
Subject: Re: [Qemu-devel] Printf message in QEMU source code
Date: Thu, 7 Aug 2014 22:07:40 +1000

On Thu, Aug 7, 2014 at 8:55 PM, Amit Tomer <address@hidden> wrote:
> I wanted to provide some printf statement in QEMU source code in order to
> debug some issue but not sure where do I see these printf statements?
>

Don't use printf for debugging instrumentation. When doing quick
hacking, can use fprintf(stderr, and take your prints from stderr. If
you are looking for something more correct then you should consider
using qemu_log_mask with one of the log options. Then you can access
your prints either from stderr or log them to file with -D option.

Regards,
Peter

> I have looked into following post but it is without any answers
>
> Debugging Qemu Source Code and not Kernel Source Code
>
> I am launching QEMU in terminal where I have it's output, not OSs.
>
> How Do I see printf logs while launching QEMU in headless environment?
>
> Thanks,
> Amit



reply via email to

[Prev in Thread] Current Thread [Next in Thread]