From: dv Date: Sat, 23 Sep 2023 12:31:41 +0000 (+0000) Subject: vmd(8): correct log messages, no functional change. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4cd4f4861576ebb81d400f4fac763326d9bf50a5;p=openbsd vmd(8): correct log messages, no functional change. Some log messages incorrectly said "vionet" or "vioblk". Fix based on the context. --- diff --git a/usr.sbin/vmd/vionet.c b/usr.sbin/vmd/vionet.c index 5123ad4c1d6..c0fb24c0c40 100644 --- a/usr.sbin/vmd/vionet.c +++ b/usr.sbin/vmd/vionet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vionet.c,v 1.4 2023/09/01 19:42:26 dv Exp $ */ +/* $OpenBSD: vionet.c,v 1.5 2023/09/23 12:31:41 dv Exp $ */ /* * Copyright (c) 2023 Dave Voutila @@ -800,7 +800,7 @@ handle_sync_io(int fd, short event, void *arg) /* Dump device */ n = atomicio(vwrite, dev->sync_fd, dev, sizeof(*dev)); if (n != sizeof(*dev)) { - log_warnx("%s: failed to dump vioblk device", + log_warnx("%s: failed to dump vionet device", __func__); break; } diff --git a/usr.sbin/vmd/virtio.c b/usr.sbin/vmd/virtio.c index 203594c5693..42710c52e01 100644 --- a/usr.sbin/vmd/virtio.c +++ b/usr.sbin/vmd/virtio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtio.c,v 1.107 2023/09/14 15:25:43 dv Exp $ */ +/* $OpenBSD: virtio.c,v 1.108 2023/09/23 12:31:41 dv Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -1656,7 +1656,7 @@ virtio_pci_io(int dir, uint16_t reg, uint32_t *data, uint8_t *intr, ret = imsg_compose(ibuf, IMSG_DEVOP_MSG, 0, 0, -1, &msg, sizeof(msg)); if (ret == -1) { - log_warn("%s: failed to send async io event to vionet" + log_warn("%s: failed to send async io event to virtio" " device", __func__); return (ret); } @@ -1671,7 +1671,7 @@ virtio_pci_io(int dir, uint16_t reg, uint32_t *data, uint8_t *intr, ret = imsg_compose(ibuf, IMSG_DEVOP_MSG, 0, 0, -1, &msg, sizeof(msg)); if (ret == -1) { - log_warnx("%s: failed to send sync io event to vionet" + log_warnx("%s: failed to send sync io event to virtio" " device", __func__); return (ret); }