git: aa0cd9e5b4d2 - main - ocs_fc(4): Fix a couple of typos in kernel messages

From: Gordon Bergling <gbe_at_FreeBSD.org>
Date: Tue, 28 Oct 2025 08:11:30 UTC
The branch main has been updated by gbe:

URL: https://cgit.FreeBSD.org/src/commit/?id=aa0cd9e5b4d21b11097e1c21a3c0eb23525c15c3

commit aa0cd9e5b4d21b11097e1c21a3c0eb23525c15c3
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2025-10-28 08:11:11 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2025-10-28 08:11:11 +0000

    ocs_fc(4): Fix a couple of typos in kernel messages
    
    - s/unexpectd/unexpected/
    - s/Unexected/Unexpected/
    - s/niether/neither/
    - s/sucessfully/successfully/
    - s/Inavlid/Invalid/
    - s/toplogy/topology/
    
    MFC after:      1 week
---
 sys/dev/ocs_fc/ocs_device.c  | 2 +-
 sys/dev/ocs_fc/ocs_els.c     | 4 ++--
 sys/dev/ocs_fc/ocs_gendump.c | 4 ++--
 sys/dev/ocs_fc/ocs_ioctl.c   | 2 +-
 sys/dev/ocs_fc/ocs_scsi.c    | 2 +-
 sys/dev/ocs_fc/ocs_xport.c   | 4 ++--
 6 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/sys/dev/ocs_fc/ocs_device.c b/sys/dev/ocs_fc/ocs_device.c
index 7f0c5526b1c3..d9c283541d3c 100644
--- a/sys/dev/ocs_fc/ocs_device.c
+++ b/sys/dev/ocs_fc/ocs_device.c
@@ -825,7 +825,7 @@ __ocs_d_init(ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 			ocs_node_transition(node, __ocs_d_wait_topology_notify, NULL);
 			break;
 		default:
-			node_printf(node, "received PLOGI, with unexpectd topology %d\n",
+			node_printf(node, "received PLOGI, with unexpected topology %d\n",
 				    node->sport->topology);
 			ocs_assert(FALSE, NULL);
 			break;
diff --git a/sys/dev/ocs_fc/ocs_els.c b/sys/dev/ocs_fc/ocs_els.c
index c62f71d4eb4f..cf4f01477f69 100644
--- a/sys/dev/ocs_fc/ocs_els.c
+++ b/sys/dev/ocs_fc/ocs_els.c
@@ -314,7 +314,7 @@ _ocs_els_io_free(void *arg)
 			ocs_list_remove(&node->els_io_pend_list, els);
 			els->els_pend = 0;
 		} else {
-			ocs_log_err(ocs, "assertion failed: niether els->els_pend nor els->active set\n");
+			ocs_log_err(ocs, "assertion failed: neither els->els_pend nor els->active set\n");
 			ocs_unlock(&node->active_ios_lock);
 			return;
 		}
@@ -363,7 +363,7 @@ ocs_els_make_active(ocs_io_t *els)
 		} else {
 			/* must be retrying; make sure it's already active */
 			if (!els->els_active) {
-				ocs_log_err(node->ocs, "assertion failed: niether els->els_pend nor els->active set\n");
+				ocs_log_err(node->ocs, "assertion failed: neither els->els_pend nor els->active set\n");
 			}
 		}
 	ocs_unlock(&node->active_ios_lock);
diff --git a/sys/dev/ocs_fc/ocs_gendump.c b/sys/dev/ocs_fc/ocs_gendump.c
index 83155d90c3a3..6a1abfefadfc 100644
--- a/sys/dev/ocs_fc/ocs_gendump.c
+++ b/sys/dev/ocs_fc/ocs_gendump.c
@@ -153,7 +153,7 @@ ocs_gen_dump(ocs_t *ocs)
 			ocs_log_test(ocs, "Failed to see dump after 30 secs\n");
 			rc = -1;
 		} else {
-			ocs_log_debug(ocs, "sucessfully generated dump\n");
+			ocs_log_debug(ocs, "successfully generated dump\n");
 		}
 
 		/* now reset port */
@@ -219,7 +219,7 @@ ocs_fdb_dump(ocs_t *ocs)
 			return -1;
 		}
 
-		ocs_log_debug(ocs, "sucessfully generated dump\n");
+		ocs_log_debug(ocs, "successfully generated dump\n");
 
 	} else {
 		ocs_log_err(ocs, "dump request to hw failed\n");
diff --git a/sys/dev/ocs_fc/ocs_ioctl.c b/sys/dev/ocs_fc/ocs_ioctl.c
index 71ba17d5f72a..d3cea434b2be 100644
--- a/sys/dev/ocs_fc/ocs_ioctl.c
+++ b/sys/dev/ocs_fc/ocs_ioctl.c
@@ -796,7 +796,7 @@ ocs_sys_fwupgrade(SYSCTL_HANDLER_ARGS)
                                 break;
                         default:
                                 ocs_log_warn(ocs,
-                                        "Unexected value change_status: %d\n",
+                                        "Unexpected value change_status: %d\n",
                                         fw_change_status);
                                 break;
                 }
diff --git a/sys/dev/ocs_fc/ocs_scsi.c b/sys/dev/ocs_fc/ocs_scsi.c
index af9fc798b01c..1bbf60b9014b 100644
--- a/sys/dev/ocs_fc/ocs_scsi.c
+++ b/sys/dev/ocs_fc/ocs_scsi.c
@@ -720,7 +720,7 @@ ocs_scsi_build_sgls(ocs_hw_t *hw, ocs_hw_io_t *hio, ocs_hw_dif_info_t *hw_dif, o
 			case OCS_HW_DIF_BK_SIZE_520:	blocksize = 520; break;
 			case OCS_HW_DIF_BK_SIZE_4104:	blocksize = 4104; break;
 			default:
-				ocs_log_test(hw->os, "Inavlid hw_dif blocksize %d\n", hw_dif->blk_size);
+				ocs_log_test(hw->os, "Invalid hw_dif blocksize %d\n", hw_dif->blk_size);
 				return -1;
 			}
 			for (i = 0; i < sgl_count; i++) {
diff --git a/sys/dev/ocs_fc/ocs_xport.c b/sys/dev/ocs_fc/ocs_xport.c
index d997ea245132..9e69bf0ed98f 100644
--- a/sys/dev/ocs_fc/ocs_xport.c
+++ b/sys/dev/ocs_fc/ocs_xport.c
@@ -482,12 +482,12 @@ ocs_xport_initialize(ocs_xport_t *xport)
 	 /* Setup persistent topology based on topology mod-param value */
         rc = ocs_topology_setup(ocs);
         if (rc) {
-                ocs_log_err(ocs, "%s: Can't set the toplogy\n", ocs->desc);
+                ocs_log_err(ocs, "%s: Can't set the topology\n", ocs->desc);
                 return -1;
         }
 
 	if (ocs_hw_set(&ocs->hw, OCS_HW_TOPOLOGY, ocs->topology) != OCS_HW_RTN_SUCCESS) {
-		ocs_log_err(ocs, "%s: Can't set the toplogy\n", ocs->desc);
+		ocs_log_err(ocs, "%s: Can't set the topology\n", ocs->desc);
 		return -1;
 	}
 	ocs_hw_set(&ocs->hw, OCS_HW_RQ_DEFAULT_BUFFER_SIZE, OCS_FC_RQ_SIZE_DEFAULT);