[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 08/13] vmxnet3: Use common MAC address tracing ma
From: |
Leonid Bloch |
Subject: |
[Qemu-devel] [PATCH v2 08/13] vmxnet3: Use common MAC address tracing macros |
Date: |
Mon, 22 Feb 2016 19:37:26 +0200 |
From: Dmitry Fleytman <address@hidden>
Signed-off-by: Dmitry Fleytman <address@hidden>
Signed-off-by: Leonid Bloch <address@hidden>
---
hw/net/vmxnet3.c | 8 ++++----
hw/net/vmxnet_debug.h | 3 ---
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
index 0a4db4d..26f6f90 100644
--- a/hw/net/vmxnet3.c
+++ b/hw/net/vmxnet3.c
@@ -474,7 +474,7 @@ static void vmxnet3_set_variable_mac(VMXNET3State *s,
uint32_t h, uint32_t l)
s->conf.macaddr.a[4] = VMXNET3_GET_BYTE(h, 0);
s->conf.macaddr.a[5] = VMXNET3_GET_BYTE(h, 1);
- VMW_CFPRN("Variable MAC: " VMXNET_MF, VMXNET_MA(s->conf.macaddr.a));
+ VMW_CFPRN("Variable MAC: " MAC_FMT, MAC_ARG(s->conf.macaddr.a));
qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a);
}
@@ -1219,7 +1219,7 @@ static void vmxnet3_reset_interrupt_states(VMXNET3State
*s)
static void vmxnet3_reset_mac(VMXNET3State *s)
{
memcpy(&s->conf.macaddr.a, &s->perm_mac.a, sizeof(s->perm_mac.a));
- VMW_CFPRN("MAC address set to: " VMXNET_MF, VMXNET_MA(s->conf.macaddr.a));
+ VMW_CFPRN("MAC address set to: " MAC_FMT, MAC_ARG(s->conf.macaddr.a));
}
static void vmxnet3_deactivate_device(VMXNET3State *s)
@@ -1301,7 +1301,7 @@ static void vmxnet3_update_mcast_filters(VMXNET3State *s)
cpu_physical_memory_read(mcast_list_pa, s->mcast_list, list_bytes);
VMW_CFPRN("Current multicast list len is %d:", s->mcast_list_len);
for (i = 0; i < s->mcast_list_len; i++) {
- VMW_CFPRN("\t" VMXNET_MF, VMXNET_MA(s->mcast_list[i].a));
+ VMW_CFPRN("\t" MAC_FMT, MAC_ARG(s->mcast_list[i].a));
}
}
}
@@ -2102,7 +2102,7 @@ static void vmxnet3_net_init(VMXNET3State *s)
s->link_status_and_speed = VMXNET3_LINK_SPEED | VMXNET3_LINK_STATUS_UP;
- VMW_CFPRN("Permanent MAC: " VMXNET_MF, VMXNET_MA(s->perm_mac.a));
+ VMW_CFPRN("Permanent MAC: " MAC_FMT, MAC_ARG(s->perm_mac.a));
s->nic = qemu_new_nic(&net_vmxnet3_info, &s->conf,
object_get_typename(OBJECT(s)),
diff --git a/hw/net/vmxnet_debug.h b/hw/net/vmxnet_debug.h
index 96495db..5aab00b 100644
--- a/hw/net/vmxnet_debug.h
+++ b/hw/net/vmxnet_debug.h
@@ -142,7 +142,4 @@
} \
} while (0)
-#define VMXNET_MF "%02X:%02X:%02X:%02X:%02X:%02X"
-#define VMXNET_MA(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
-
#endif /* _QEMU_VMXNET3_DEBUG_H */
--
2.5.0
- [Qemu-devel] [PATCH v2 00/13] Introduce Intel 82574 GbE Controller Emulation (e1000e), Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 02/13] pci: Introduce define for PM capability version 1.1, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 01/13] msix: make msix_clr_pending() visible for clients, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 03/13] pcie: Add support for PCIe CAP v1, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 04/13] pcie: Introduce function for DSN capability creation, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 05/13] vmxnet3: Use generic function for DSN capability definition, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 07/13] net: Add macros for MAC address tracing, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 08/13] vmxnet3: Use common MAC address tracing macros,
Leonid Bloch <=
- [Qemu-devel] [PATCH v2 06/13] net: Introduce Toeplitz hash calculator, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 10/13] rtl8139: Move more TCP definitions to common header, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 09/13] net_pkt: Name vmxnet3 packet abstractions more generic, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 12/13] e1000_regs: Add definitions for Intel 82574-specific bits, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 11/13] net_pkt: Extend packet abstraction as required by e1000e functionality, Leonid Bloch, 2016/02/22
- [Qemu-devel] [PATCH v2 13/13] net: Introduce e1000e device emulation, Leonid Bloch, 2016/02/22