diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-19 19:13:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-19 19:13:05 -0400 |
commit | 53159d06cb07517422f977591264ca9bf806febb (patch) | |
tree | 0ad957af423cfb8d32fda7a92f763d95901502ec /drivers/net | |
parent | 79b6f7ecdac7a37df72a5f354816c0dd0b6ac592 (diff) |
qlge: Fix warnings in debugging code.
drivers/net/qlge/qlge_dbg.c: In function ‘ql_dump_qdev’:
drivers/net/qlge/qlge_dbg.c:369: warning: cast to pointer from integer of different size
drivers/net/qlge/qlge_dbg.c:373: warning: cast to pointer from integer of different size
drivers/net/qlge/qlge_dbg.c: In function ‘ql_dump_tx_ring’:
drivers/net/qlge/qlge_dbg.c:457: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’
drivers/net/qlge/qlge_dbg.c:461: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’
drivers/net/qlge/qlge_dbg.c: In function ‘ql_dump_rx_ring’:
drivers/net/qlge/qlge_dbg.c:557: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’
drivers/net/qlge/qlge_dbg.c:565: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’
drivers/net/qlge/qlge_dbg.c:575: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’
drivers/net/qlge/qlge_dbg.c:579: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’
drivers/net/qlge/qlge_dbg.c:598: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’
drivers/net/qlge/qlge_dbg.c:602: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/qlge/qlge_dbg.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/qlge/qlge_dbg.c b/drivers/net/qlge/qlge_dbg.c index f0392b166170..47df304a02c8 100644 --- a/drivers/net/qlge/qlge_dbg.c +++ b/drivers/net/qlge/qlge_dbg.c | |||
@@ -365,12 +365,12 @@ void ql_dump_qdev(struct ql_adapter *qdev) | |||
365 | qdev->msg_enable); | 365 | qdev->msg_enable); |
366 | printk(KERN_ERR PFX "qdev->rx_ring_shadow_reg_area = %p.\n", | 366 | printk(KERN_ERR PFX "qdev->rx_ring_shadow_reg_area = %p.\n", |
367 | qdev->rx_ring_shadow_reg_area); | 367 | qdev->rx_ring_shadow_reg_area); |
368 | printk(KERN_ERR PFX "qdev->rx_ring_shadow_reg_dma = %p.\n", | 368 | printk(KERN_ERR PFX "qdev->rx_ring_shadow_reg_dma = %llx.\n", |
369 | (void *)qdev->rx_ring_shadow_reg_dma); | 369 | (unsigned long long) qdev->rx_ring_shadow_reg_dma); |
370 | printk(KERN_ERR PFX "qdev->tx_ring_shadow_reg_area = %p.\n", | 370 | printk(KERN_ERR PFX "qdev->tx_ring_shadow_reg_area = %p.\n", |
371 | qdev->tx_ring_shadow_reg_area); | 371 | qdev->tx_ring_shadow_reg_area); |
372 | printk(KERN_ERR PFX "qdev->tx_ring_shadow_reg_dma = %p.\n", | 372 | printk(KERN_ERR PFX "qdev->tx_ring_shadow_reg_dma = %llx.\n", |
373 | (void *)qdev->tx_ring_shadow_reg_dma); | 373 | (unsigned long long) qdev->tx_ring_shadow_reg_dma); |
374 | printk(KERN_ERR PFX "qdev->intr_count = %d.\n", | 374 | printk(KERN_ERR PFX "qdev->intr_count = %d.\n", |
375 | qdev->intr_count); | 375 | qdev->intr_count); |
376 | if (qdev->msi_x_entry) | 376 | if (qdev->msi_x_entry) |
@@ -454,11 +454,11 @@ void ql_dump_tx_ring(struct tx_ring *tx_ring) | |||
454 | tx_ring->wq_id); | 454 | tx_ring->wq_id); |
455 | printk(KERN_ERR PFX "tx_ring->base = %p.\n", tx_ring->wq_base); | 455 | printk(KERN_ERR PFX "tx_ring->base = %p.\n", tx_ring->wq_base); |
456 | printk(KERN_ERR PFX "tx_ring->base_dma = 0x%llx.\n", | 456 | printk(KERN_ERR PFX "tx_ring->base_dma = 0x%llx.\n", |
457 | (u64) tx_ring->wq_base_dma); | 457 | (unsigned long long) tx_ring->wq_base_dma); |
458 | printk(KERN_ERR PFX "tx_ring->cnsmr_idx_sh_reg = %p.\n", | 458 | printk(KERN_ERR PFX "tx_ring->cnsmr_idx_sh_reg = %p.\n", |
459 | tx_ring->cnsmr_idx_sh_reg); | 459 | tx_ring->cnsmr_idx_sh_reg); |
460 | printk(KERN_ERR PFX "tx_ring->cnsmr_idx_sh_reg_dma = 0x%llx.\n", | 460 | printk(KERN_ERR PFX "tx_ring->cnsmr_idx_sh_reg_dma = 0x%llx.\n", |
461 | (u64) tx_ring->cnsmr_idx_sh_reg_dma); | 461 | (unsigned long long) tx_ring->cnsmr_idx_sh_reg_dma); |
462 | printk(KERN_ERR PFX "tx_ring->size = %d.\n", tx_ring->wq_size); | 462 | printk(KERN_ERR PFX "tx_ring->size = %d.\n", tx_ring->wq_size); |
463 | printk(KERN_ERR PFX "tx_ring->len = %d.\n", tx_ring->wq_len); | 463 | printk(KERN_ERR PFX "tx_ring->len = %d.\n", tx_ring->wq_len); |
464 | printk(KERN_ERR PFX "tx_ring->prod_idx_db_reg = %p.\n", | 464 | printk(KERN_ERR PFX "tx_ring->prod_idx_db_reg = %p.\n", |
@@ -554,7 +554,7 @@ void ql_dump_rx_ring(struct rx_ring *rx_ring) | |||
554 | printk(KERN_ERR PFX "rx_ring->cqicb = %p.\n", &rx_ring->cqicb); | 554 | printk(KERN_ERR PFX "rx_ring->cqicb = %p.\n", &rx_ring->cqicb); |
555 | printk(KERN_ERR PFX "rx_ring->cq_base = %p.\n", rx_ring->cq_base); | 555 | printk(KERN_ERR PFX "rx_ring->cq_base = %p.\n", rx_ring->cq_base); |
556 | printk(KERN_ERR PFX "rx_ring->cq_base_dma = %llx.\n", | 556 | printk(KERN_ERR PFX "rx_ring->cq_base_dma = %llx.\n", |
557 | (u64) rx_ring->cq_base_dma); | 557 | (unsigned long long) rx_ring->cq_base_dma); |
558 | printk(KERN_ERR PFX "rx_ring->cq_size = %d.\n", rx_ring->cq_size); | 558 | printk(KERN_ERR PFX "rx_ring->cq_size = %d.\n", rx_ring->cq_size); |
559 | printk(KERN_ERR PFX "rx_ring->cq_len = %d.\n", rx_ring->cq_len); | 559 | printk(KERN_ERR PFX "rx_ring->cq_len = %d.\n", rx_ring->cq_len); |
560 | printk(KERN_ERR PFX | 560 | printk(KERN_ERR PFX |
@@ -562,7 +562,7 @@ void ql_dump_rx_ring(struct rx_ring *rx_ring) | |||
562 | rx_ring->prod_idx_sh_reg, | 562 | rx_ring->prod_idx_sh_reg, |
563 | rx_ring->prod_idx_sh_reg ? *(rx_ring->prod_idx_sh_reg) : 0); | 563 | rx_ring->prod_idx_sh_reg ? *(rx_ring->prod_idx_sh_reg) : 0); |
564 | printk(KERN_ERR PFX "rx_ring->prod_idx_sh_reg_dma = %llx.\n", | 564 | printk(KERN_ERR PFX "rx_ring->prod_idx_sh_reg_dma = %llx.\n", |
565 | (u64) rx_ring->prod_idx_sh_reg_dma); | 565 | (unsigned long long) rx_ring->prod_idx_sh_reg_dma); |
566 | printk(KERN_ERR PFX "rx_ring->cnsmr_idx_db_reg = %p.\n", | 566 | printk(KERN_ERR PFX "rx_ring->cnsmr_idx_db_reg = %p.\n", |
567 | rx_ring->cnsmr_idx_db_reg); | 567 | rx_ring->cnsmr_idx_db_reg); |
568 | printk(KERN_ERR PFX "rx_ring->cnsmr_idx = %d.\n", rx_ring->cnsmr_idx); | 568 | printk(KERN_ERR PFX "rx_ring->cnsmr_idx = %d.\n", rx_ring->cnsmr_idx); |
@@ -572,11 +572,11 @@ void ql_dump_rx_ring(struct rx_ring *rx_ring) | |||
572 | 572 | ||
573 | printk(KERN_ERR PFX "rx_ring->lbq_base = %p.\n", rx_ring->lbq_base); | 573 | printk(KERN_ERR PFX "rx_ring->lbq_base = %p.\n", rx_ring->lbq_base); |
574 | printk(KERN_ERR PFX "rx_ring->lbq_base_dma = %llx.\n", | 574 | printk(KERN_ERR PFX "rx_ring->lbq_base_dma = %llx.\n", |
575 | (u64) rx_ring->lbq_base_dma); | 575 | (unsigned long long) rx_ring->lbq_base_dma); |
576 | printk(KERN_ERR PFX "rx_ring->lbq_base_indirect = %p.\n", | 576 | printk(KERN_ERR PFX "rx_ring->lbq_base_indirect = %p.\n", |
577 | rx_ring->lbq_base_indirect); | 577 | rx_ring->lbq_base_indirect); |
578 | printk(KERN_ERR PFX "rx_ring->lbq_base_indirect_dma = %llx.\n", | 578 | printk(KERN_ERR PFX "rx_ring->lbq_base_indirect_dma = %llx.\n", |
579 | (u64) rx_ring->lbq_base_indirect_dma); | 579 | (unsigned long long) rx_ring->lbq_base_indirect_dma); |
580 | printk(KERN_ERR PFX "rx_ring->lbq = %p.\n", rx_ring->lbq); | 580 | printk(KERN_ERR PFX "rx_ring->lbq = %p.\n", rx_ring->lbq); |
581 | printk(KERN_ERR PFX "rx_ring->lbq_len = %d.\n", rx_ring->lbq_len); | 581 | printk(KERN_ERR PFX "rx_ring->lbq_len = %d.\n", rx_ring->lbq_len); |
582 | printk(KERN_ERR PFX "rx_ring->lbq_size = %d.\n", rx_ring->lbq_size); | 582 | printk(KERN_ERR PFX "rx_ring->lbq_size = %d.\n", rx_ring->lbq_size); |
@@ -595,11 +595,11 @@ void ql_dump_rx_ring(struct rx_ring *rx_ring) | |||
595 | 595 | ||
596 | printk(KERN_ERR PFX "rx_ring->sbq_base = %p.\n", rx_ring->sbq_base); | 596 | printk(KERN_ERR PFX "rx_ring->sbq_base = %p.\n", rx_ring->sbq_base); |
597 | printk(KERN_ERR PFX "rx_ring->sbq_base_dma = %llx.\n", | 597 | printk(KERN_ERR PFX "rx_ring->sbq_base_dma = %llx.\n", |
598 | (u64) rx_ring->sbq_base_dma); | 598 | (unsigned long long) rx_ring->sbq_base_dma); |
599 | printk(KERN_ERR PFX "rx_ring->sbq_base_indirect = %p.\n", | 599 | printk(KERN_ERR PFX "rx_ring->sbq_base_indirect = %p.\n", |
600 | rx_ring->sbq_base_indirect); | 600 | rx_ring->sbq_base_indirect); |
601 | printk(KERN_ERR PFX "rx_ring->sbq_base_indirect_dma = %llx.\n", | 601 | printk(KERN_ERR PFX "rx_ring->sbq_base_indirect_dma = %llx.\n", |
602 | (u64) rx_ring->sbq_base_indirect_dma); | 602 | (unsigned long long) rx_ring->sbq_base_indirect_dma); |
603 | printk(KERN_ERR PFX "rx_ring->sbq = %p.\n", rx_ring->sbq); | 603 | printk(KERN_ERR PFX "rx_ring->sbq = %p.\n", rx_ring->sbq); |
604 | printk(KERN_ERR PFX "rx_ring->sbq_len = %d.\n", rx_ring->sbq_len); | 604 | printk(KERN_ERR PFX "rx_ring->sbq_len = %d.\n", rx_ring->sbq_len); |
605 | printk(KERN_ERR PFX "rx_ring->sbq_size = %d.\n", rx_ring->sbq_size); | 605 | printk(KERN_ERR PFX "rx_ring->sbq_size = %d.\n", rx_ring->sbq_size); |