Revision 7cb7434b hw/usb-net.c

b/hw/usb-net.c
1456 1456
    s->vc = qemu_new_vlan_client(nd->vlan, nd->model,
1457 1457
                    usbnet_receive, usbnet_can_receive, s);
1458 1458

  
1459
    qemu_format_nic_info_str(s->vc, s->mac);
1460

  
1459 1461
    snprintf(s->usbstring_mac, sizeof(s->usbstring_mac),
1460 1462
                    "%02x%02x%02x%02x%02x%02x",
1461 1463
                    0x40, s->mac[1], s->mac[2],
1462 1464
                    s->mac[3], s->mac[4], s->mac[5]);
1463
    snprintf(s->vc->info_str, sizeof(s->vc->info_str),
1464
                    "usbnet macaddr=%02x:%02x:%02x:%02x:%02x:%02x",
1465
                    s->mac[0], s->mac[1], s->mac[2],
1466
                    s->mac[3], s->mac[4], s->mac[5]);
1467 1465
    fprintf(stderr, "usbnet: initialized mac %02x:%02x:%02x:%02x:%02x:%02x\n",
1468 1466
                    s->mac[0], s->mac[1], s->mac[2],
1469 1467
                    s->mac[3], s->mac[4], s->mac[5]);

Also available in: Unified diff