From: sf Date: Tue, 27 Aug 2024 19:11:20 +0000 (+0000) Subject: vio: whitespace and message tweaks X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d6ed892b8255d245d85aef1eafa8d1e13bb52dcf;p=openbsd vio: whitespace and message tweaks Fix whitespace. Other network drivers use a comma in the boot message. Make more clear what features are meant in an error message OK bluhm@ --- diff --git a/sys/dev/pv/if_vio.c b/sys/dev/pv/if_vio.c index 548c596ca63..ffc98ff7969 100644 --- a/sys/dev/pv/if_vio.c +++ b/sys/dev/pv/if_vio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vio.c,v 1.49 2024/08/27 18:44:12 sf Exp $ */ +/* $OpenBSD: if_vio.c,v 1.50 2024/08/27 19:11:20 sf Exp $ */ /* * Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg. @@ -443,7 +443,7 @@ vio_alloc_mem(struct vio_softc *sc) if (vio_alloc_dmamem(sc) != 0) { printf("unable to allocate dma region\n"); - return -1; + return -1; } kva = sc->sc_dma_kva; @@ -588,7 +588,7 @@ vio_attach(struct device *parent, struct device *self, void *aux) ether_fakeaddr(ifp); vio_put_lladdr(&sc->sc_ac, vsc); } - printf(": address %s\n", ether_sprintf(sc->sc_ac.ac_enaddr)); + printf(", address %s\n", ether_sprintf(sc->sc_ac.ac_enaddr)); if (virtio_has_feature(vsc, VIRTIO_NET_F_MRG_RXBUF) || vsc->sc_version_1) { @@ -1502,8 +1502,8 @@ vio_ctrl_guest_offloads(struct vio_softc *sc, uint64_t features) if (sc->sc_ctrl_status->ack == VIRTIO_NET_OK) { r = 0; } else { - printf("%s: features 0x%llx failed\n", sc->sc_dev.dv_xname, - features); + printf("%s: offload features 0x%llx failed\n", + sc->sc_dev.dv_xname, features); r = EIO; }