diff options
author | Tejun Heo <htejun@gmail.com> | 2007-02-20 11:06:51 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-21 04:58:20 -0500 |
commit | 44877b4e22f391d39c6589412106a3668e81a05b (patch) | |
tree | 10bf134c2c8c15e3504d67461b42f53c6de88523 /drivers/ata/pdc_adma.c | |
parent | 5ce0cf6fafd02fb4c43fc1a1bee6069d6c0a36b1 (diff) |
libata: s/ap->id/ap->print_id/g
ata_port has two different id fields - id and port_no. id is
system-wide 1-based unique id for the port while port_no is 0-based
host-wide port number. The former is primarily used to identify the
ATA port to the user in printk messages while the latter is used in
various places in libata core and LLDs to index the port inside the
host.
The two fields feel quite similar and sometimes ap->id is used in
place of ap->port_no, which is very difficult to spot. This patch
renames ap->id to ap->print_id to reduce the possibility of such bugs.
Some printk messages are adjusted such that id string (ata%u[.%u])
isn't printed twice and/or to use ata_*_printk() instead of hardcoded
id format.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pdc_adma.c')
-rw-r--r-- | drivers/ata/pdc_adma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c index 857ac23217ab..37bab32d74d6 100644 --- a/drivers/ata/pdc_adma.c +++ b/drivers/ata/pdc_adma.c | |||
@@ -498,7 +498,7 @@ static inline unsigned int adma_intr_mmio(struct ata_host *host) | |||
498 | if ((status & ATA_BUSY)) | 498 | if ((status & ATA_BUSY)) |
499 | continue; | 499 | continue; |
500 | DPRINTK("ata%u: protocol %d (dev_stat 0x%X)\n", | 500 | DPRINTK("ata%u: protocol %d (dev_stat 0x%X)\n", |
501 | ap->id, qc->tf.protocol, status); | 501 | ap->print_id, qc->tf.protocol, status); |
502 | 502 | ||
503 | /* complete taskfile transaction */ | 503 | /* complete taskfile transaction */ |
504 | pp->state = adma_state_idle; | 504 | pp->state = adma_state_idle; |