Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Apr 2022 08:14:51 GMT
From:      Gordon Bergling <gbe@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 49dace1d465d - main - cam: Fix typos in source code comments
Message-ID:  <202204020814.2328EpOG059144@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by gbe (doc committer):

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

commit 49dace1d465dd99b72a73a9d373137be7816e2f0
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2022-04-02 08:13:35 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-04-02 08:13:35 +0000

    cam: Fix typos in source code comments
    
    - s/paniced/panicked/
    
    MFC after:      3 days
---
 sys/cam/ata/ata_da.c   | 4 ++--
 sys/cam/nvme/nvme_da.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c
index 41561c25f363..d9d0c73c2dbb 100644
--- a/sys/cam/ata/ata_da.c
+++ b/sys/cam/ata/ata_da.c
@@ -3563,7 +3563,7 @@ adaflush(void)
 	CAM_PERIPH_FOREACH(periph, &adadriver) {
 		softc = (struct ada_softc *)periph->softc;
 		if (SCHEDULER_STOPPED()) {
-			/* If we paniced with the lock held, do not recurse. */
+			/* If we panicked with the lock held, do not recurse. */
 			if (!cam_periph_owned(periph) &&
 			    (softc->flags & ADA_FLAG_OPEN)) {
 				adadump(softc->disk, NULL, 0, 0, 0);
@@ -3615,7 +3615,7 @@ adaspindown(uint8_t cmd, int flags)
 	int mode;
 
 	CAM_PERIPH_FOREACH(periph, &adadriver) {
-		/* If we paniced with lock held - not recurse here. */
+		/* If we panicked with lock held - not recurse here. */
 		if (cam_periph_owned(periph))
 			continue;
 		cam_periph_lock(periph);
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index a3d72e1017c9..c7dc671170cc 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -1317,7 +1317,7 @@ ndaflush(void)
 
 		if (SCHEDULER_STOPPED()) {
 			/*
-			 * If we paniced with the lock held or the periph is not
+			 * If we panicked with the lock held or the periph is not
 			 * open, do not recurse.  Otherwise, call ndadump since
 			 * that avoids the sleeping cam_periph_getccb does if no
 			 * CCBs are available.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204020814.2328EpOG059144>