|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] debug logging |
Date: | Mon, 02 May 2011 12:25:30 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110318 Red Hat/3.1.9-3.el6_0 Thunderbird/3.1.9 |
Hi,
dbg_print takes care of making it standard to have a loglevel and prefix, sounds good, but I'd still like to know if it is acceptable to also redirect with -debug, I guess reusing the DeviceState then, instead of my added struct, so just letting DeviceState.debug_chardev == NULL by default, and settable with -debug<devname>,id=<chardev_id>
Making dbg_print use DeviceState.debug_chardev (if present, stderr otherwise) looks sane to me. Buf I'd use standard properties then to set it instead of a separate -debug switch, i.e.
-chardev file,id=messages,path=... \ -device foo,dbg=1,dbglog=messages cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |