TYPO: Change periperal_device_type to just device_type

but leave the old name as a define for backward compatibility
This commit is contained in:
Ronnie Sahlberg
2012-09-03 09:45:59 -07:00
parent 77fc2497f7
commit 116af01156
14 changed files with 47 additions and 43 deletions

View File

@@ -66,9 +66,9 @@ void inquiry_device_identification(struct scsi_inquiry_device_identification *in
int i;
printf("Peripheral Qualifier:%s\n",
scsi_devqualifier_to_str(inq->periperal_qualifier));
scsi_devqualifier_to_str(inq->qualifier));
printf("Peripheral Device Type:%s\n",
scsi_devtype_to_str(inq->periperal_device_type));
scsi_devtype_to_str(inq->device_type));
printf("Page Code:(0x%02x) %s\n",
inq->pagecode, scsi_inquiry_pagecode_to_str(inq->pagecode));
@@ -102,9 +102,9 @@ void inquiry_supported_pages(struct scsi_inquiry_supported_pages *inq)
void inquiry_standard(struct scsi_inquiry_standard *inq)
{
printf("Peripheral Qualifier:%s\n",
scsi_devqualifier_to_str(inq->periperal_qualifier));
scsi_devqualifier_to_str(inq->qualifier));
printf("Peripheral Device Type:%s\n",
scsi_devtype_to_str(inq->periperal_device_type));
scsi_devtype_to_str(inq->device_type));
printf("Removable:%d\n", inq->rmb);
printf("Version:%d %s\n", inq->version, scsi_version_to_str(inq->version));
printf("NormACA:%d\n", inq->normaca);

View File

@@ -103,7 +103,7 @@ tur_try_again:
fprintf(stderr, "failed to unmarshall inquiry datain blob\n");
exit(10);
}
type = inq->periperal_device_type;
type = inq->device_type;
scsi_free_scsi_task(task);