Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21845
b: refs/heads/master
c: 0bd3300
h: refs/heads/master
i:
  21843: a83fcf5
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Feb 12, 2006
1 parent e1ae377 commit ce61b0f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 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: 3d2ca91095f8ab6dc0cb925374eec62fa5336764
refs/heads/master: 0bd3300ac9158b6ceef38fab6fb473765a40e77e
36 changes: 18 additions & 18 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,41 +651,41 @@ void ata_dev_select(struct ata_port *ap, unsigned int device,

/**
* ata_dump_id - IDENTIFY DEVICE info debugging output
* @dev: Device whose IDENTIFY DEVICE page we will dump
* @id: IDENTIFY DEVICE page to dump
*
* Dump selected 16-bit words from a detected device's
* IDENTIFY PAGE page.
* Dump selected 16-bit words from the given IDENTIFY DEVICE
* page.
*
* LOCKING:
* caller.
*/

static inline void ata_dump_id(const struct ata_device *dev)
static inline void ata_dump_id(const u16 *id)
{
DPRINTK("49==0x%04x "
"53==0x%04x "
"63==0x%04x "
"64==0x%04x "
"75==0x%04x \n",
dev->id[49],
dev->id[53],
dev->id[63],
dev->id[64],
dev->id[75]);
id[49],
id[53],
id[63],
id[64],
id[75]);
DPRINTK("80==0x%04x "
"81==0x%04x "
"82==0x%04x "
"83==0x%04x "
"84==0x%04x \n",
dev->id[80],
dev->id[81],
dev->id[82],
dev->id[83],
dev->id[84]);
id[80],
id[81],
id[82],
id[83],
id[84]);
DPRINTK("88==0x%04x "
"93==0x%04x\n",
dev->id[88],
dev->id[93]);
id[88],
id[93]);
}

/*
Expand Down Expand Up @@ -1019,7 +1019,7 @@ static void ata_dev_identify(struct ata_port *ap, unsigned int device)
if (!xfer_modes)
xfer_modes = ata_pio_modes(dev);

ata_dump_id(dev);
ata_dump_id(dev->id);

/* ATA-specific feature tests */
if (dev->class == ATA_DEV_ATA) {
Expand Down Expand Up @@ -2510,7 +2510,7 @@ static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev)

swap_buf_le16(dev->id, ATA_ID_WORDS);

ata_dump_id(dev);
ata_dump_id(dev->id);

DPRINTK("EXIT\n");

Expand Down

0 comments on commit ce61b0f

Please sign in to comment.