From 7cb7434b1e4aee549b55536208abe56e35159763 Mon Sep 17 00:00:00 2001 From: aliguori Date: Wed, 7 Jan 2009 17:46:21 +0000 Subject: Add qemu_format_nic_info_str() (Mark McLoughlin) Factor out a simple little function for formatting a NIC's info_str and make all NICs use it. Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6218 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/mipsnet.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'hw/mipsnet.c') diff --git a/hw/mipsnet.c b/hw/mipsnet.c index 549e6f38f1..4b3e8e9347 100644 --- a/hw/mipsnet.c +++ b/hw/mipsnet.c @@ -256,14 +256,7 @@ void mipsnet_init (int base, qemu_irq irq, NICInfo *nd) s->vc = NULL; } - snprintf(s->vc->info_str, sizeof(s->vc->info_str), - "mipsnet macaddr=%02x:%02x:%02x:%02x:%02x:%02x", - s->nd->macaddr[0], - s->nd->macaddr[1], - s->nd->macaddr[2], - s->nd->macaddr[3], - s->nd->macaddr[4], - s->nd->macaddr[5]); + qemu_format_nic_info_str(s->vc, s->nd->macaddr); mipsnet_reset(s); register_savevm("mipsnet", 0, 0, mipsnet_save, mipsnet_load, s); -- cgit v1.2.3