From 1c7b4932d881c38e82bfb774f87d9c52b9c07bda Mon Sep 17 00:00:00 2001
From: dpgilbert <dpgilbert@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sun, 17 Jul 2022 02:22:29 +0000
Subject: [PATCH] some spelling fixes with the help of the codespell utility

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5397 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 smartmontools/ChangeLog    | 4 ++++
 smartmontools/os_linux.cpp | 4 ++--
 smartmontools/scsiata.cpp  | 2 +-
 smartmontools/scsicmds.cpp | 2 +-
 smartmontools/utility.cpp  | 2 +-
 5 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index a63700a89..6c8f524b6 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -1,5 +1,9 @@
 $Id$
 
+2022-07-16  Douglas Gilbert  <dgilbert@interlog.com>
+
+	some spelling fixes with the help of the codespell utility
+
 2022-06-24  Douglas Gilbert  <dgilbert@interlog.com>
 
 	drivedb.h:
diff --git a/smartmontools/os_linux.cpp b/smartmontools/os_linux.cpp
index b0b95e51d..9dac4e60f 100644
--- a/smartmontools/os_linux.cpp
+++ b/smartmontools/os_linux.cpp
@@ -481,7 +481,7 @@ int linux_ata_device::ata_command_interface(smart_command_set command, int selec
  * the SCSI_IOCTL_SEND_COMMAND ioctl is still present but deprecated sending
  * a warning to the log the first time (after power up) it is used. The SG_IO
  * Version 3 interface is the most widely used (circa lk 5.17 in 2022) and is
- * available on the primary block devive name (e.g. /dev/sdc) for all SCSI
+ * available on the primary block device name (e.g. /dev/sdc) for all SCSI
  * disks (and tapes) including all USB attached storage and all ATA/SATA
  * storage. */
 
@@ -869,7 +869,7 @@ bool linux_aacraid_device::open()
   char dev_name[128];
   snprintf(dev_name, sizeof(dev_name), "/dev/aac%d", aHost);
 
-  //Initial open of dev name to check if it exsists
+  //Initial open of dev name to check if it exists
   int afd = ::open(dev_name,O_RDWR);
 
   if(afd < 0 && errno == ENOENT) {
diff --git a/smartmontools/scsiata.cpp b/smartmontools/scsiata.cpp
index d208deaa0..707446628 100644
--- a/smartmontools/scsiata.cpp
+++ b/smartmontools/scsiata.cpp
@@ -596,7 +596,7 @@ static int sg_scsi_normalize_sense(const unsigned char * sensep, int sb_len,
 
 namespace sat {
 
-/// Cypress USB Brigde support.
+/// Cypress USB Bridge support.
 
 class usbcypress_device
 : public tunnelled_device<
diff --git a/smartmontools/scsicmds.cpp b/smartmontools/scsicmds.cpp
index 306336a51..e17d698b3 100644
--- a/smartmontools/scsicmds.cpp
+++ b/smartmontools/scsicmds.cpp
@@ -259,7 +259,7 @@ static struct scsi_opcode_name opcode_name_arr[] = {
     {REPORT_LUNS, false, 0, "report luns"},               /* 0xa0 */
     {SAT_ATA_PASSTHROUGH_12, false, 0, "ata pass-through(12)"}, /* 0xa1 */
     {MAINTENANCE_IN_12, true, MI_REP_SUP_OPCODES,
-        "report suported operation codes"},               /* 0xa3,0xc */
+        "report supported operation codes"},              /* 0xa3,0xc */
     {READ_DEFECT_12, false, 0, "read defect list(12)"},   /* 0xb7 */
 };
 
diff --git a/smartmontools/utility.cpp b/smartmontools/utility.cpp
index 1e2e4c96c..e0e5fa164 100644
--- a/smartmontools/utility.cpp
+++ b/smartmontools/utility.cpp
@@ -394,7 +394,7 @@ void syserror(const char *message){
     const char *errormessage=strerror(errno);
     
     // Check that caller has handed a sensible string, and provide
-    // appropriate output. See perrror(3) man page to understand better.
+    // appropriate output. See perror(3) man page to understand better.
     if (message && *message)
       pout("%s: %s\n",message, errormessage);
     else
-- 
GitLab