On 04/15/2010 07:06 AM, Miguel Di Ciurcio Filho wrote:
Signed-off-by: Miguel Di Ciurcio Filho<miguel.fi...@gmail.com>
---
hw/eepro100.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 7db6fb5..457bda8 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -1978,8 +1978,14 @@ static int nic_init(PCIDevice *pci_dev, uint32_t device)
s->nic = qemu_new_nic(&net_eepro100_info,&s->conf,
pci_dev->qdev.info->name, pci_dev->qdev.id, s);
- qemu_format_nic_info_str(&s->nic->nc, s->conf.macaddr.a);
- TRACE(OTHER, logout("%s\n", s->nic->nc.info_str));
+ qemu_format_nic_info_dict(&s->nic->nc, s->conf.macaddr.a);
+
+#ifdef DEBUG_EEPRO100
+ QString *qstring;
+ qstring = qdict_to_qstring(s->nic->nc.info_dict);
This isn't C++ or C99 -- declarations have to come at the start
of a block. You need to add { } here inside the ifdef.
r~