Re: [Qemu-devel] qemu-kvm log

2012-09-10 Thread Avi Kivity
On 09/10/2012 01:44 PM, Liu, Jinsong wrote:
 Hi,
 
 I'm recently debugging a qemu-kvm issue. I add some print code like 
 'fprintf(stderr, ...)', however I fail to see any info at stdio. Anyone can 
 tell me where is qemu-kvm logfile, or, what I need do to record my fprintf 
 info?


If you're running via libvirt, the log is in /var/log/libvirt/qemu.  If
you're running from the command line and printf()s should end on your
terminal.


-- 
error compiling committee.c: too many arguments to function
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [Qemu-devel] qemu-kvm log

2012-09-10 Thread Liu, Jinsong
Avi Kivity wrote:
 On 09/10/2012 01:44 PM, Liu, Jinsong wrote:
 Hi,
 
 I'm recently debugging a qemu-kvm issue. I add some print code like
 'fprintf(stderr, ...)', however I fail to see any info at stdio.
 Anyone can tell me where is qemu-kvm logfile, or, what I need do to
 record my fprintf info?   
 
 
 If you're running via libvirt, the log is in /var/log/libvirt/qemu. 
 If you're running from the command line and printf()s should end on
 your terminal.

Thanks!

I run qemu-kvm from command line, but due to could not initialize SDL, I run 
qemu command via VNC, like
1). test kvm-unit-tests: qemu-system-x86_64 -device testdev,chardev=testlog 
-chardev file,id=testlog,path=apic.out -serial stdio -kernel ./x86/apic.flat 
-cpu host
2). test kvm guest: qemu-system-x86_64 -smp2 -m 512 -hda test.qcow.img -cpu host
for case 1, there is some printf info of kvm-unit-tests on terminal but no 
qemu-kvm printf info;
for case 2, no qemu-kvm printf info on terminal;

Best Regards,
Jinsong--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html