diff --git a/share/man/man4/xvif.4 b/share/man/man4/xvif.4 index 65f01ca6e953..a9ec8b2827c0 100644 --- a/share/man/man4/xvif.4 +++ b/share/man/man4/xvif.4 @@ -1,4 +1,4 @@ -.\" $NetBSD: xvif.4,v 1.3 2011/04/03 23:44:46 jym Exp $ +.\" $NetBSD: xvif.4,v 1.4 2011/04/06 23:51:56 jym Exp $ .\" .\" Copyright (c) 2011 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd April 4, 2011 +.Dd April 7, 2011 .Dt XVIF 4 xen .Os .Sh NAME @@ -62,7 +62,7 @@ entries. All .Nm interfaces follow the -.Dq xvifX-Y +.Dq xvifXiY naming convention, where .Sq X represents the guest domain identifier, and @@ -80,12 +80,12 @@ Conceptually, frontends and backends drivers are similar to two Ethernet cards connected via a crossover cable. .Sh DIAGNOSTICS .Bl -diag -.It "xvif%d-%d: can't read %s/mac: %d" +.It "xvif%di%d: can't read %s/mac: %d" The MAC address for this interface could not be read from XenStore. -.It "xvif%d-%d: %s is not a valid mac address" +.It "xvif%di%d: %s is not a valid mac address" The MAC address specified in the configuration file of the newly created guest domain is invalid. -.It "xvif%d-%d: Ethernet address %s" +.It "xvif%di%d: Ethernet address %s" MAC address of the .Nm interface. diff --git a/sys/arch/xen/xen/xennetback_xenbus.c b/sys/arch/xen/xen/xennetback_xenbus.c index f634a93308c1..b46bbb815e7c 100644 --- a/sys/arch/xen/xen/xennetback_xenbus.c +++ b/sys/arch/xen/xen/xennetback_xenbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: xennetback_xenbus.c,v 1.39 2011/04/03 23:21:37 jym Exp $ */ +/* $NetBSD: xennetback_xenbus.c,v 1.40 2011/04/06 23:51:55 jym Exp $ */ /* * Copyright (c) 2006 Manuel Bouyer. @@ -271,7 +271,7 @@ xennetback_xenbus_create(struct xenbus_device *xbusd) ifp = &xneti->xni_if; ifp->if_softc = xneti; - snprintf(ifp->if_xname, IFNAMSIZ, "xvif%d-%d", + snprintf(ifp->if_xname, IFNAMSIZ, "xvif%di%d", (int)domid, (int)handle); /* read mac address */