diff --git a/elks/arch/i86/drivers/block/ll_rw_blk.c b/elks/arch/i86/drivers/block/ll_rw_blk.c index 8c96cf766..0ad819620 100644 --- a/elks/arch/i86/drivers/block/ll_rw_blk.c +++ b/elks/arch/i86/drivers/block/ll_rw_blk.c @@ -161,6 +161,14 @@ static void add_request(struct blk_dev_struct *dev, struct request *req) req->rq_next = tmp->rq_next; tmp->rq_next = req; set_irq(); +#if DEBUG_CACHE + if (debug_level) { + int n = 0; + for (tmp = dev->current_request; tmp->rq_next; tmp = tmp->rq_next) + n++; + if (n > 1) printk("REQS %d ", n); + } +#endif #else panic("add_request"); /* non-empty request queue */ #endif diff --git a/elks/include/linuxmt/debug.h b/elks/include/linuxmt/debug.h index 239404ebc..9d900c1e5 100644 --- a/elks/include/linuxmt/debug.h +++ b/elks/include/linuxmt/debug.h @@ -16,7 +16,7 @@ #define DEBUG_LEVEL 0 /* default startup debug level*/ #define DEBUG_BIOS 0 /* BIOS driver*/ #define DEBUG_BLK 0 /* block i/o*/ -#define DEBUG_CACHE 1 /* floppy track cache*/ +#define DEBUG_CACHE 0 /* floppy track cache*/ #define DEBUG_ETH 0 /* ethernet*/ #define DEBUG_FAT 0 /* FAT filesystem*/ #define DEBUG_FILE 0 /* sys open and file i/o*/