ide-tape: dump gcw fields on error in idetape_identify_device()

Cc: Borislav Petkov <bbpetkov@yahoo.de>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 47314fa4
...@@ -3852,16 +3852,17 @@ static int idetape_identify_device (ide_drive_t *drive) ...@@ -3852,16 +3852,17 @@ static int idetape_identify_device (ide_drive_t *drive)
/* Check that we can support this device */ /* Check that we can support this device */
if (gcw.protocol !=2 ) if (gcw.protocol != 2)
printk(KERN_ERR "ide-tape: Protocol is not ATAPI\n"); printk(KERN_ERR "ide-tape: Protocol (0x%02x) is not ATAPI\n",
gcw.protocol);
else if (gcw.device_type != 1) else if (gcw.device_type != 1)
printk(KERN_ERR "ide-tape: Device type is not set to tape\n"); printk(KERN_ERR "ide-tape: Device type (0x%02x) is not set "
"to tape\n", gcw.device_type);
else if (!gcw.removable) else if (!gcw.removable)
printk(KERN_ERR "ide-tape: The removable flag is not set\n"); printk(KERN_ERR "ide-tape: The removable flag is not set\n");
else if (gcw.packet_size != 0) { else if (gcw.packet_size != 0) {
printk(KERN_ERR "ide-tape: Packet size is not 12 bytes long\n"); printk(KERN_ERR "ide-tape: Packet size (0x%02x) is not 12 "
if (gcw.packet_size == 1) "bytes long\n", gcw.packet_size);
printk(KERN_ERR "ide-tape: Sorry, padding to 16 bytes is still not supported\n");
} else } else
return 1; return 1;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment