Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287353
b: refs/heads/master
c: e59a41b
h: refs/heads/master
i:
  287351: d36e50b
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Nicholas Bellinger committed Jan 18, 2012
1 parent 5638276 commit 7b064f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91ec1d3535b2acf12c599045cc19ad9be3c6a47b
refs/heads/master: e59a41b69a8e116d5ac8c95c4222f5a971f66bbd
24 changes: 13 additions & 11 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,32 +1255,34 @@ static void core_setup_task_attr_emulation(struct se_device *dev)
static void scsi_dump_inquiry(struct se_device *dev)
{
struct t10_wwn *wwn = &dev->se_sub_dev->t10_wwn;
char buf[17];
int i, device_type;
/*
* Print Linux/SCSI style INQUIRY formatting to the kernel ring buffer
*/
pr_debug(" Vendor: ");
for (i = 0; i < 8; i++)
if (wwn->vendor[i] >= 0x20)
pr_debug("%c", wwn->vendor[i]);
buf[i] = wwn->vendor[i];
else
pr_debug(" ");
buf[i] = ' ';
buf[i] = '\0';
pr_debug(" Vendor: %s\n", buf);

pr_debug(" Model: ");
for (i = 0; i < 16; i++)
if (wwn->model[i] >= 0x20)
pr_debug("%c", wwn->model[i]);
buf[i] = wwn->model[i];
else
pr_debug(" ");
buf[i] = ' ';
buf[i] = '\0';
pr_debug(" Model: %s\n", buf);

pr_debug(" Revision: ");
for (i = 0; i < 4; i++)
if (wwn->revision[i] >= 0x20)
pr_debug("%c", wwn->revision[i]);
buf[i] = wwn->revision[i];
else
pr_debug(" ");

pr_debug("\n");
buf[i] = ' ';
buf[i] = '\0';
pr_debug(" Revision: %s\n", buf);

device_type = dev->transport->get_device_type(dev);
pr_debug(" Type: %s ", scsi_device_type(device_type));
Expand Down

0 comments on commit 7b064f4

Please sign in to comment.