How to switch to debug mode to compile xen ?
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!
Signature · 5 lines
Best regards, 张树坤 北京理工大学,计算机科学技术学院 Sucan Computer Department,Beijing Institute of Technology,China
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
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
Quoted 13 lines · 张树坤
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.cfile ,in thedo_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!