aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-02 13:56:48 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-02 13:56:48 -0500
commit16422de3579d1debf0b502fc94cac6327db29c4d (patch)
tree0ccc56a8d20586406ea47dea079a8b70cc1c46e1 /drivers/ide/ide-tape.c
parent47314fa4298cf77aa155393e09ffc8199dd2b581 (diff)
ide-tape: dump gcw fields on error in idetape_identify_device()
Cc: Borislav Petkov <bbpetkov@yahoo.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r--drivers/ide/ide-tape.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index ee92ff1fb745..bbf60ee582bb 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -3852,16 +3852,17 @@ static int idetape_identify_device (ide_drive_t *drive)
3852 3852
3853 /* Check that we can support this device */ 3853 /* Check that we can support this device */
3854 3854
3855 if (gcw.protocol !=2 ) 3855 if (gcw.protocol != 2)
3856 printk(KERN_ERR "ide-tape: Protocol is not ATAPI\n"); 3856 printk(KERN_ERR "ide-tape: Protocol (0x%02x) is not ATAPI\n",
3857 gcw.protocol);
3857 else if (gcw.device_type != 1) 3858 else if (gcw.device_type != 1)
3858 printk(KERN_ERR "ide-tape: Device type is not set to tape\n"); 3859 printk(KERN_ERR "ide-tape: Device type (0x%02x) is not set "
3860 "to tape\n", gcw.device_type);
3859 else if (!gcw.removable) 3861 else if (!gcw.removable)
3860 printk(KERN_ERR "ide-tape: The removable flag is not set\n"); 3862 printk(KERN_ERR "ide-tape: The removable flag is not set\n");
3861 else if (gcw.packet_size != 0) { 3863 else if (gcw.packet_size != 0) {
3862 printk(KERN_ERR "ide-tape: Packet size is not 12 bytes long\n"); 3864 printk(KERN_ERR "ide-tape: Packet size (0x%02x) is not 12 "
3863 if (gcw.packet_size == 1) 3865 "bytes long\n", gcw.packet_size);
3864 printk(KERN_ERR "ide-tape: Sorry, padding to 16 bytes is still not supported\n");
3865 } else 3866 } else
3866 return 1; 3867 return 1;
3867 return 0; 3868 return 0;