From: Keir Fraser Subject: Re: How to switch to debug mode to compile xen ? Date: Tue, 02 Jun 2009 08:27:52 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?GB2312?B?1cXK98Ck?= , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org I don't think there is a config option to turn it on. Add: EXTRA_CFLAGS :=3D -DDEBUG To drivers/xen/blkfront/Makefile and rebuild -- Keir On 02/06/2009 08:17, "=D5=C5=CA=F7=C0=A4" wrote: > hi,=20 >=20 > DPRINTK("do_blk_req %p: cmd %p, sec %llx, " > "(%u/%li) buffer:%p [%s]\n", > req, req->cmd, (long long)req->sector, > req->current_nr_sectors, > req->nr_sectors, req->buffer, > rq_data_dir(req) ? "write" : "read"); >=20 > this statement is located in the blkfront.c file ,in the > do_blkif_request(request_queue_t *rq) function. i know DPRINTK is used f= or > debug only. if i want to see the DPRINTK message , how could i do? that's= how > to open the debug mode to compile xen source code? Thanks!