vmd(8): correct log messages, no functional change.
authordv <dv@openbsd.org>
Sat, 23 Sep 2023 12:31:41 +0000 (12:31 +0000)
committerdv <dv@openbsd.org>
Sat, 23 Sep 2023 12:31:41 +0000 (12:31 +0000)
Some log messages incorrectly said "vionet" or "vioblk". Fix based
on the context.

usr.sbin/vmd/vionet.c
usr.sbin/vmd/virtio.c

index 5123ad4..c0fb24c 100644 (file)
@@ -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 <dv@openbsd.org>
@@ -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;
                        }
index 203594c..42710c5 100644 (file)
@@ -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 <mlarkin@openbsd.org>
@@ -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);
                }