diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-10-30 07:51:52 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-12-07 15:44:27 -0500 |
commit | c0f00e279712923cc945604d29a252e52c7838e1 (patch) | |
tree | d8a0aecfe4c237747e8873830d52934e493a7886 | |
parent | 1f72cf5251a8f806a8930ae2cd152aa79fd0de83 (diff) |
ohci1394: shortcut irq printing
To print irq number no need to transform to string using %d, then print
using %s. Just use %d.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
-rw-r--r-- | drivers/ieee1394/ohci1394.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ieee1394/ohci1394.c b/drivers/ieee1394/ohci1394.c index 406b7501b9b..b8e922b65e2 100644 --- a/drivers/ieee1394/ohci1394.c +++ b/drivers/ieee1394/ohci1394.c | |||
@@ -468,7 +468,6 @@ static int get_nb_iso_ctx(struct ti_ohci *ohci, int reg) | |||
468 | /* Global initialization */ | 468 | /* Global initialization */ |
469 | static void ohci_initialize(struct ti_ohci *ohci) | 469 | static void ohci_initialize(struct ti_ohci *ohci) |
470 | { | 470 | { |
471 | char irq_buf[16]; | ||
472 | quadlet_t buf; | 471 | quadlet_t buf; |
473 | int num_ports, i; | 472 | int num_ports, i; |
474 | 473 | ||
@@ -586,11 +585,10 @@ static void ohci_initialize(struct ti_ohci *ohci) | |||
586 | reg_write(ohci, OHCI1394_HCControlSet, OHCI1394_HCControl_linkEnable); | 585 | reg_write(ohci, OHCI1394_HCControlSet, OHCI1394_HCControl_linkEnable); |
587 | 586 | ||
588 | buf = reg_read(ohci, OHCI1394_Version); | 587 | buf = reg_read(ohci, OHCI1394_Version); |
589 | sprintf (irq_buf, "%d", ohci->dev->irq); | 588 | PRINT(KERN_INFO, "OHCI-1394 %d.%d (PCI): IRQ=[%d] " |
590 | PRINT(KERN_INFO, "OHCI-1394 %d.%d (PCI): IRQ=[%s] " | ||
591 | "MMIO=[%llx-%llx] Max Packet=[%d] IR/IT contexts=[%d/%d]", | 589 | "MMIO=[%llx-%llx] Max Packet=[%d] IR/IT contexts=[%d/%d]", |
592 | ((((buf) >> 16) & 0xf) + (((buf) >> 20) & 0xf) * 10), | 590 | ((((buf) >> 16) & 0xf) + (((buf) >> 20) & 0xf) * 10), |
593 | ((((buf) >> 4) & 0xf) + ((buf) & 0xf) * 10), irq_buf, | 591 | ((((buf) >> 4) & 0xf) + ((buf) & 0xf) * 10), ohci->dev->irq, |
594 | (unsigned long long)pci_resource_start(ohci->dev, 0), | 592 | (unsigned long long)pci_resource_start(ohci->dev, 0), |
595 | (unsigned long long)pci_resource_start(ohci->dev, 0) + OHCI1394_REGISTER_SIZE - 1, | 593 | (unsigned long long)pci_resource_start(ohci->dev, 0) + OHCI1394_REGISTER_SIZE - 1, |
596 | ohci->max_packet_size, | 594 | ohci->max_packet_size, |