ide-tape: print attach failure messages; Signed-off-by: Randy Dunlap diffstat:= drivers/ide/ide-tape.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff -Naurp ./drivers/ide/ide-tape.c~ide_tape_attach ./drivers/ide/ide-tape.c --- ./drivers/ide/ide-tape.c~ide_tape_attach 2005-03-01 23:37:54.000000000 -0800 +++ ./drivers/ide/ide-tape.c 2005-03-11 13:56:14.000000000 -0800 @@ -4747,12 +4747,18 @@ static int idetape_attach (ide_drive_t * idetape_tape_t *tape; int minor; - if (!strstr("ide-tape", drive->driver_req)) + if (!strstr("ide-tape", drive->driver_req)) { + printk("%s: strstr failed\n", __FUNCTION__); goto failed; - if (!drive->present) + } + if (!drive->present) { + printk("%s: drive not present\n", __FUNCTION__); goto failed; - if (drive->media != ide_tape) + } + if (drive->media != ide_tape) { + printk("%s: media not ide_tape\n", __FUNCTION__); goto failed; + } if (!idetape_identify_device (drive)) { printk(KERN_ERR "ide-tape: %s: not supported by this version of ide-tape\n", drive->name); goto failed;