From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya1lO-0006Nw-27 for qemu-devel@nongnu.org; Mon, 23 Mar 2015 08:47:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya1lH-0005of-Lp for qemu-devel@nongnu.org; Mon, 23 Mar 2015 08:47:25 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:36396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya1lH-0005oD-Ft for qemu-devel@nongnu.org; Mon, 23 Mar 2015 08:47:19 -0400 Received: by wibg7 with SMTP id g7so46318852wib.1 for ; Mon, 23 Mar 2015 05:47:18 -0700 (PDT) Date: Mon, 23 Mar 2015 12:47:16 +0000 From: Stefan Hajnoczi Message-ID: <20150323124716.GC9268@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WfZ7S8PLGjBY9Voh" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Output of fprintf messages in qemu source List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Toms Varghese Cc: qemu-devel@nongnu.org --WfZ7S8PLGjBY9Voh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 19, 2015 at 12:17:29AM +0530, Toms Varghese wrote: > Hi all, >=20 > I can see some fprintf (stderr, ...) statements in qemu source code. I > expect the output to be shown in the terminal window. I use libvirt to > manage my VMs and hence have no idea about the exact qemu command line > being used. From the comments in the below post > http://blog.vmsplice.net/2011/03/how-to-write-trace-analysis-scripts-for.= html > I found that libvirt is supposed to store the stderr outputs > in /var/lib/libvirt/qemu/.log file. But I am unable to find any such log > file in /var/lib/libvirt/qemu. Can anyone please tell me how to get the > output of fprintfs in this case as it would help me a lot? > I am using fedora 21, qemu 2.0.2 and libvirt 1.2.9.2. The file name is: /var/lib/libvirt/qemu/.log It includes the QEMU command-line as well as stderr output. Stefan --WfZ7S8PLGjBY9Voh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVEAtUAAoJEJykq7OBq3PIv+gH/1VyFCY06VT+Q48wfwtQNm0b dLdio8aywgN6C9QpnPqKPN+52mRnI4C4pBAH+FVMheTXAraas2ZpnZ7+t4VtC26e qoXAWbFt7ErXwzqJWiq13Pox/MEkpav0eXL80CbXV0ETpNELtMJZfvOixGJDVlwu jJ/hPLE+9Y0N5qMksqgsCImgSRr1ZHnJcDoYvcmwr/pSQN11VV16zHCgEXAowEFH NzutQ0CTLjWFT43qltf4XXLYi+rNlZ8812JsBg0I+yekjzGVot3iJQYApY/wshm+ ofpVscM6ZFdsi/C88DoSRkHqzK0O1Kc3tJe/aoiQ+7BjUXWz7lFSfzYNEmdL9eA= =Yha8 -----END PGP SIGNATURE----- --WfZ7S8PLGjBY9Voh--