git: 6f545abb9ac3 - stable/12 - virtio(4): Fix two typos in KASSERT messages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jun 2024 03:47:57 UTC
The branch stable/12 has been updated by gbe:
URL: https://cgit.FreeBSD.org/src/commit/?id=6f545abb9ac30b95740be355a5312c2fc24ea9cd
commit 6f545abb9ac30b95740be355a5312c2fc24ea9cd
Author: Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2024-06-16 16:02:46 +0000
Commit: Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2024-06-21 03:47:47 +0000
virtio(4): Fix two typos in KASSERT messages
- s/emtpy/empty/
(cherry picked from commit 018a361f8902d629fca64be372ef9b266fee53ba)
---
sys/dev/virtio/console/virtio_console.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/dev/virtio/console/virtio_console.c b/sys/dev/virtio/console/virtio_console.c
index 919e61be90f7..fd78bec2540f 100644
--- a/sys/dev/virtio/console/virtio_console.c
+++ b/sys/dev/virtio/console/virtio_console.c
@@ -967,7 +967,7 @@ vtcon_ctrl_poll(struct vtcon_softc *sc,
*/
VTCON_CTRL_TX_LOCK(sc);
KASSERT(virtqueue_empty(vq),
- ("%s: virtqueue is not emtpy", __func__));
+ ("%s: virtqueue is not empty", __func__));
error = virtqueue_enqueue(vq, control, &sg, sg.sg_nseg, 0);
if (error == 0) {
virtqueue_notify(vq);
@@ -1355,7 +1355,7 @@ vtcon_port_out(struct vtcon_port *port, void *buf, int bufsize)
vq = port->vtcport_outvq;
KASSERT(virtqueue_empty(vq),
- ("%s: port %p out virtqueue not emtpy", __func__, port));
+ ("%s: port %p out virtqueue not empty", __func__, port));
sglist_init(&sg, 2, segs);
error = sglist_append(&sg, buf, bufsize);