From patchwork Thu Apr 15 14:07:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v3,10/12] net: xen: use info_dict instead of info_str Date: Thu, 15 Apr 2010 04:07:05 -0000 From: Miguel Di Ciurcio Filho X-Patchwork-Id: 50267 Message-Id: <1271340427-12579-11-git-send-email-miguel.filho@gmail.com> To: qemu-devel@nongnu.org Cc: armbru@redhat.com, lcapitulino@redhat.com Signed-off-by: Miguel Di Ciurcio Filho --- hw/xen_nic.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/xen_nic.c b/hw/xen_nic.c index 08055b8..d51839d 100644 --- a/hw/xen_nic.c +++ b/hw/xen_nic.c @@ -43,6 +43,8 @@ #include "net/checksum.h" #include "net/util.h" #include "qemu-char.h" +#include "qdict.h" +#include "qstring.h" #include "xen_backend.h" /* ------------------------------------------------------------- */ @@ -318,8 +320,8 @@ static int net_init(struct XenDevice *xendev) netdev->nic = qemu_new_nic(&net_xen_info, &netdev->conf, "xen", NULL, netdev); - snprintf(netdev->nic->nc.info_str, sizeof(netdev->nic->nc.info_str), - "nic: xenbus vif macaddr=%s", netdev->mac); + netdev->nic->nc.info_dict = qdict_new(); + qdict_put(netdev->nic->nc.info_dict, "macaddr", qstring_from_str(netdev->mac)); /* fill info */ xenstore_write_be_int(&netdev->xendev, "feature-rx-copy", 1);