hi, 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"); this statement is located in the blkfront.c file ,in the do_blkif_request(request_queue_t *rq) function. i know DPRINTK is used for 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! -- Best regards, 张树坤 北京理工大学,计算机科学技术学院 Sucan Computer Department,Beijing Institute of Technology,China _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2009-Jun-02 07:27 UTC
Re: [Xen-devel] How to switch to debug mode to compile xen ?
I don''t think there is a config option to turn it on. Add: EXTRA_CFLAGS := -DDEBUG To drivers/xen/blkfront/Makefile and rebuild -- Keir On 02/06/2009 08:17, "张树坤" <bitzsk@gmail.com> wrote:> hi, > > 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"); > > this statement is located in the blkfront.c file ,in the > do_blkif_request(request_queue_t *rq) function. i know DPRINTK is used for > 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!_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel