diff options
| author | Michael Brown | 2020-11-16 16:00:05 +0100 |
|---|---|---|
| committer | Michael Brown | 2020-11-16 16:07:03 +0100 |
| commit | 062711f1cfacd0708107933b6a977476a7f7479e (patch) | |
| tree | 0494bff4980e4308c73e243562710250bbce5700 /src/drivers/net/intel.c | |
| parent | [realtek] Use physical addresses in debug messages (diff) | |
| download | ipxe-062711f1cfacd0708107933b6a977476a7f7479e.tar.gz ipxe-062711f1cfacd0708107933b6a977476a7f7479e.tar.xz ipxe-062711f1cfacd0708107933b6a977476a7f7479e.zip | |
[intel] Use physical addresses in debug messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/intel.c')
| -rw-r--r-- | src/drivers/net/intel.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/drivers/net/intel.c b/src/drivers/net/intel.c index 4afe43938..2963d9dc8 100644 --- a/src/drivers/net/intel.c +++ b/src/drivers/net/intel.c @@ -535,9 +535,9 @@ int intel_create_ring ( struct intel_nic *intel, struct intel_ring *ring ) { dctl |= INTEL_xDCTL_ENABLE; writel ( dctl, intel->regs + ring->reg + INTEL_xDCTL ); - DBGC ( intel, "INTEL %p ring %05x is at [%08llx,%08llx)\n", - intel, ring->reg, ( ( unsigned long long ) address ), - ( ( unsigned long long ) address + ring->len ) ); + DBGC ( intel, "INTEL %p ring %05x is at [%08lx,%08lx)\n", + intel, ring->reg, virt_to_phys ( ring->desc ), + ( virt_to_phys ( ring->desc ) + ring->len ) ); return 0; } @@ -599,9 +599,9 @@ void intel_refill_rx ( struct intel_nic *intel ) { address = map->addr; intel->rx.ring.describe ( rx, address, 0 ); - DBGC2 ( intel, "INTEL %p RX %d is [%llx,%llx)\n", intel, rx_idx, - ( ( unsigned long long ) address ), - ( ( unsigned long long ) address + INTEL_RX_MAX_LEN ) ); + DBGC2 ( intel, "INTEL %p RX %d is [%lx,%lx)\n", + intel, rx_idx, virt_to_phys ( iobuf->data ), + ( virt_to_phys ( iobuf->data ) + INTEL_RX_MAX_LEN ) ); refilled++; } @@ -795,9 +795,9 @@ int intel_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) { profile_stop ( &intel_vm_tx_profiler ); profile_exclude ( &intel_vm_tx_profiler ); - DBGC2 ( intel, "INTEL %p TX %d is [%llx,%llx)\n", intel, tx_idx, - ( ( unsigned long long ) address ), - ( ( unsigned long long ) address + len ) ); + DBGC2 ( intel, "INTEL %p TX %d is [%lx,%lx)\n", + intel, tx_idx, virt_to_phys ( iobuf->data ), + ( virt_to_phys ( iobuf->data ) + len ) ); return 0; } |
