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>
This commit is contained in:
parent
1f72cf5251
commit
c0f00e2797
|
@ -468,7 +468,6 @@ static int get_nb_iso_ctx(struct ti_ohci *ohci, int reg)
|
||||||
/* Global initialization */
|
/* Global initialization */
|
||||||
static void ohci_initialize(struct ti_ohci *ohci)
|
static void ohci_initialize(struct ti_ohci *ohci)
|
||||||
{
|
{
|
||||||
char irq_buf[16];
|
|
||||||
quadlet_t buf;
|
quadlet_t buf;
|
||||||
int num_ports, i;
|
int num_ports, i;
|
||||||
|
|
||||||
|
@ -586,11 +585,10 @@ static void ohci_initialize(struct ti_ohci *ohci)
|
||||||
reg_write(ohci, OHCI1394_HCControlSet, OHCI1394_HCControl_linkEnable);
|
reg_write(ohci, OHCI1394_HCControlSet, OHCI1394_HCControl_linkEnable);
|
||||||
|
|
||||||
buf = reg_read(ohci, OHCI1394_Version);
|
buf = reg_read(ohci, OHCI1394_Version);
|
||||||
sprintf (irq_buf, "%d", ohci->dev->irq);
|
PRINT(KERN_INFO, "OHCI-1394 %d.%d (PCI): IRQ=[%d] "
|
||||||
PRINT(KERN_INFO, "OHCI-1394 %d.%d (PCI): IRQ=[%s] "
|
|
||||||
"MMIO=[%llx-%llx] Max Packet=[%d] IR/IT contexts=[%d/%d]",
|
"MMIO=[%llx-%llx] Max Packet=[%d] IR/IT contexts=[%d/%d]",
|
||||||
((((buf) >> 16) & 0xf) + (((buf) >> 20) & 0xf) * 10),
|
((((buf) >> 16) & 0xf) + (((buf) >> 20) & 0xf) * 10),
|
||||||
((((buf) >> 4) & 0xf) + ((buf) & 0xf) * 10), irq_buf,
|
((((buf) >> 4) & 0xf) + ((buf) & 0xf) * 10), ohci->dev->irq,
|
||||||
(unsigned long long)pci_resource_start(ohci->dev, 0),
|
(unsigned long long)pci_resource_start(ohci->dev, 0),
|
||||||
(unsigned long long)pci_resource_start(ohci->dev, 0) + OHCI1394_REGISTER_SIZE - 1,
|
(unsigned long long)pci_resource_start(ohci->dev, 0) + OHCI1394_REGISTER_SIZE - 1,
|
||||||
ohci->max_packet_size,
|
ohci->max_packet_size,
|
||||||
|
|
Loading…
Reference in New Issue