From: "Weiping Guo" Subject: How to enable debug information? Date: Thu, 14 Aug 2008 16:18:34 -0400 Message-ID: <933bf65a0808141318n74c8c195hcda034f560fcdc40@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1521404719==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1521404719== Content-Type: multipart/alternative; boundary="----=_Part_54803_7866059.1218745114717" ------=_Part_54803_7866059.1218745114717 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Everyone, I am a newbie to the Xen. I want to understand how the blktap disk works. I found out the following files under: tools/blktap/drivers/tapdisk.h tapdisk.c where it has the definition of 'DPRINTF' /*If enabled, log all debug messages to syslog*/ #if 1 #define DPRINTF(_f, _a...) syslog( LOG_DEBUG, _f , ## _a ) #else #define DPRINTF(_f, _a...) ((void)0) #endif My question is how to enable the debug so that debug message can be sent to syslog? Which log file should I look into? Thanks a lot. Jim ------=_Part_54803_7866059.1218745114717 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Everyone,

I am a newbie to the Xen. I want to understand how the blktap disk works. I found out the following files under:

tools/blktap/drivers/tapdisk.h tapdisk.c

where it has the definition of 'DPRINTF'

/*If enabled, log all debug messages to syslog*/
#if 1
#define DPRINTF(_f, _a...) syslog( LOG_DEBUG, _f , ## _a )
#else
#define DPRINTF(_f, _a...) ((void)0)
#endif

My question is how to enable the debug so that debug message can be sent to syslog? Which log file should I look into?

Thanks a lot.

Jim
------=_Part_54803_7866059.1218745114717-- --===============1521404719== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1521404719==--