You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/25 19:31:54 UTC

[incubator-nuttx] branch master updated: Fix typos reported by codespell

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 76acb32  Fix typos reported by codespell
76acb32 is described below

commit 76acb32e29005653ce9947dccd96f6719a442020
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Feb 25 09:48:46 2021 -0300

    Fix typos reported by codespell
---
 audio/pcm_decode.c                 | 7 ++++---
 fs/fat/fs_fat32.h                  | 8 ++++----
 fs/nfs/nfs_vfsops.c                | 2 +-
 fs/romfs/fs_romfs.c                | 2 +-
 fs/spiffs/Kconfig                  | 4 ++--
 graphics/vnc/server/vnc_fbdev.c    | 2 +-
 mm/circbuf/circbuf.c               | 2 +-
 net/ipforward/Make.defs            | 2 +-
 net/local/local_connect.c          | 2 +-
 net/route/Kconfig                  | 2 +-
 sched/Kconfig                      | 2 +-
 sched/clock/clock_dow.c            | 2 +-
 sched/pthread/pthread_initialize.c | 2 +-
 sched/task/spawn.h                 | 2 +-
 sched/task/task_exit.c             | 4 ++--
 tools/Config.mk                    | 2 +-
 tools/incdir.c                     | 2 +-
 tools/licensing/check.py           | 4 ++--
 tools/licensing/log2json.sh        | 2 +-
 tools/macar-rcs.sh                 | 2 +-
 tools/mkdeps.c                     | 8 ++++----
 tools/parsecallstack.py            | 4 ++--
 wireless/bluetooth/bt_hcicore.c    | 2 +-
 wireless/ieee802154/mac802154.c    | 2 +-
 24 files changed, 37 insertions(+), 36 deletions(-)

diff --git a/audio/pcm_decode.c b/audio/pcm_decode.c
index d1dec6e..3a40a59 100644
--- a/audio/pcm_decode.c
+++ b/audio/pcm_decode.c
@@ -402,7 +402,8 @@ static bool pcm_parsewav(FAR struct pcm_decode_s *priv, uint8_t *data)
 
       if (priv->bpsamp != 8 && priv->bpsamp != 16)
         {
-          auderr("ERROR: %d bits per sample are not suported in this mode\n",
+          auderr("ERROR: %d bits per sample are not supported in this "
+                 "mode\n",
                  priv->bpsamp);
           return -EINVAL;
         }
@@ -1301,8 +1302,8 @@ static int pcm_release(FAR struct audio_lowerhalf_s *dev)
 
   DEBUGASSERT(priv);
 
-  /* Release the lower driver.. it is then available for use by other
-   * decoders (and we cannot use the lower driver wither unless we re-
+  /* Release the lower driver. It is then available for use by other
+   * decoders (and we cannot use the lower driver either unless we re-
    * reserve it).
    */
 
diff --git a/fs/fat/fs_fat32.h b/fs/fat/fs_fat32.h
index f646b1a..5858aed 100644
--- a/fs/fat/fs_fat32.h
+++ b/fs/fat/fs_fat32.h
@@ -68,7 +68,7 @@
 
 /* The following fields are only valid for FAT12/16 */
 
-#define MBR16_DRVNUM        36 /*  1@36: Drive number for MSDOS bootstrap */
+#define MBR16_DRVNUM        36 /*  1@36: Drive number for MS-DOS bootstrap */
                                /*  1@37: Reserved (zero) */
 #define MBR16_BOOTSIG       38 /*  1@38: Extended boot signature: 0x29 if following valid */
 #define MBR16_VOLID         39 /*  4@39: Volume serial number */
@@ -87,7 +87,7 @@
 #define MBR32_FSINFO        48 /*  2@48: Sector number of fsinfo structure. Usually 1. */
 #define MBR32_BKBOOTSEC     50 /*  2@50: Sector number of boot record. Usually 6  */
                                /* 12@52: Reserved (zero) */
-#define MBR32_DRVNUM        64 /*  1@64: Drive number for MSDOS bootstrap */
+#define MBR32_DRVNUM        64 /*  1@64: Drive number for MS-DOS bootstrap */
                                /*  1@65: Reserved (zero) */
 #define MBR32_BOOTSIG       66 /*  1@66: Extended boot signature: 0x29 if following valid */
 #define MBR32_VOLID         67 /*  4@67: Volume serial number */
@@ -192,7 +192,7 @@
 
 /* The following fields are only valid for FAT12/16 */
 
-#define FBR16_DRVNUM        36 /*  1@36: Drive number for MSDOS bootstrap */
+#define FBR16_DRVNUM        36 /*  1@36: Drive number for MS-DOS bootstrap */
                                /*  1@37: Reserved (zero) */
 #define FBR16_BOOTSIG       38 /*  1@38: Extended boot signature: 0x29 if following valid */
 #define FBR16_VOLID         39 /*  4@39: Volume serial number */
@@ -201,7 +201,7 @@
 
 /* The following fields are only valid for FAT32 */
 
-#define FBR32_DRVNUM        64 /*  1@64: Drive number for MSDOS bootstrap */
+#define FBR32_DRVNUM        64 /*  1@64: Drive number for MS-DOS bootstrap */
 #define FBR32_BOOTSIG       65 /*  1@65: Extended boot signature: 0x29 if following valid */
 #define FBR32_VOLID         66 /*  4@66: Volume serial number */
 #define FBR32_VOLLAB        71 /* 11@71: Volume label */
diff --git a/fs/nfs/nfs_vfsops.c b/fs/nfs/nfs_vfsops.c
index 8571a91..9065a23 100644
--- a/fs/nfs/nfs_vfsops.c
+++ b/fs/nfs/nfs_vfsops.c
@@ -1917,7 +1917,7 @@ static int nfs_bind(FAR struct inode *blkdriver, FAR const void *data,
   nmp->nm_fhsize      = nmp->nm_rpcclnt->rc_fhsize;
   nmp->nm_fh          = &nmp->nm_rpcclnt->rc_fh;
 
-  /* Get the file sytem info */
+  /* Get the file system info */
 
   ret = nfs_fsinfo(nmp);
   if (ret)
diff --git a/fs/romfs/fs_romfs.c b/fs/romfs/fs_romfs.c
index 6e15783..db51457 100644
--- a/fs/romfs/fs_romfs.c
+++ b/fs/romfs/fs_romfs.c
@@ -196,7 +196,7 @@ static int romfs_open(FAR struct file *filep, FAR const char *relpath,
 
   /* The full path exists -- but is the final component a file
    * or a directory?  Or some other Unix file type that is not
-   * appropriate in this contex.
+   * appropriate in this context.
    *
    * REVISIT: This logic should follow hard/soft link file
    * types.  At present, it returns the ENXIO.
diff --git a/fs/spiffs/Kconfig b/fs/spiffs/Kconfig
index e8e9372..c2d4d41 100644
--- a/fs/spiffs/Kconfig
+++ b/fs/spiffs/Kconfig
@@ -182,7 +182,7 @@ config SPIFFS_COMPAT_OLD_NUTTX
 	bool "Compatibility with older NuttX SPIFFS"
 	default n
 	---help---
-		Enable the compatiblilty with older NuttX versions.
+		Enable the compatibility with older NuttX versions.
 		(Older than NuttX 11.0.0, where this option was introduced.)
 
 		Note: For better compatibility, you may want to disable
@@ -197,7 +197,7 @@ config SPIFFS_LEADING_SLASH
 	---help---
 		Assume and ensure that on-flash filenames are always prefixed
 		with a slash.
-		This enables the compatibily with images generated by
+		This enables the compatibility with images generated by
 		the following tools:
 
 			* mkspiffs
diff --git a/graphics/vnc/server/vnc_fbdev.c b/graphics/vnc/server/vnc_fbdev.c
index 74ae166..6f83af7 100644
--- a/graphics/vnc/server/vnc_fbdev.c
+++ b/graphics/vnc/server/vnc_fbdev.c
@@ -681,7 +681,7 @@ int up_fbinitialize(int display)
  * Description:
  *   Initialize the VNC frame buffer driver.  The VNC frame buffer driver
  *   supports two initialization interfaces:  The standard up_fbinitialize()
- *   that will be called from the graphics layer and this speical
+ *   that will be called from the graphics layer and this special
  *   initialization function that can be used only by VNC aware OS logic.
  *
  *   The two initialization functions may be called separated or together in
diff --git a/mm/circbuf/circbuf.c b/mm/circbuf/circbuf.c
index 0912e52..8bf7956 100644
--- a/mm/circbuf/circbuf.c
+++ b/mm/circbuf/circbuf.c
@@ -210,7 +210,7 @@ size_t circbuf_used(FAR struct circbuf_s *circ)
  * Name: circbuf_space
  *
  * Description:
- *   Return the remaing space of the circular buffer.
+ *   Return the remaining space of the circular buffer.
  *
  * Input Parameters:
  *   circ  - Address of the circular buffer to be used.
diff --git a/net/ipforward/Make.defs b/net/ipforward/Make.defs
index 6e8d020..57f1853 100644
--- a/net/ipforward/Make.defs
+++ b/net/ipforward/Make.defs
@@ -36,7 +36,7 @@ ifeq ($(CONFIG_NET_STATISTICS),y)
 NET_CSRCS += ipfwd_dropstats.c
 endif
 
-# Include IP forwaring build support
+# Include IP forwarding build support
 
 DEPPATH += --dep-path ipforward
 VPATH += :ipforward
diff --git a/net/local/local_connect.c b/net/local/local_connect.c
index ffafa2b..5618a57 100644
--- a/net/local/local_connect.c
+++ b/net/local/local_connect.c
@@ -261,7 +261,7 @@ int psock_local_connect(FAR struct socket *psock,
       conn = (FAR struct local_conn_s *)dq_next(&conn->lc_node))
     {
       /* Anything in the listener list should be a stream socket in the
-       * istening state
+       * listening state
        */
 
       DEBUGASSERT(conn->lc_state == LOCAL_STATE_LISTENING &&
diff --git a/net/route/Kconfig b/net/route/Kconfig
index d765468..03cf002 100644
--- a/net/route/Kconfig
+++ b/net/route/Kconfig
@@ -117,7 +117,7 @@ config ROUTE_FILEDIR
 	---help---
 		Provides the full path to location in the file system where routing
 		table will be accessed.  This is a string and should not include
-		any traling '/'.
+		any trailing '/'.
 
 config ROUTE_IPv6_CACHEROUTE
 	bool "In-memory IPv6 cache"
diff --git a/sched/Kconfig b/sched/Kconfig
index f80897e..2201df6 100644
--- a/sched/Kconfig
+++ b/sched/Kconfig
@@ -913,7 +913,7 @@ config SCHED_INSTRUMENTATION_EXTERNAL
 	bool "System performance monitor endpoints are external"
 	default n
 	---help---
-		When this option is enabled, the board specific logic must implment all
+		When this option is enabled, the board specific logic must implement all
 		callbacks listed in SCHED_INSTRUMENTATION, SCHED_INSTRUMENTATION_CSECTION,
 		SCHED_INSTRUMENTATION_SPINLOCKS, SCHED_INSTRUMENTATION_SYSCALL and
 		SCHED_INSTRUMENTATION_IRQHANDLER. Otherwise the common code will implement
diff --git a/sched/clock/clock_dow.c b/sched/clock/clock_dow.c
index 42a37a7..dd11143 100644
--- a/sched/clock/clock_dow.c
+++ b/sched/clock/clock_dow.c
@@ -50,7 +50,7 @@ static const uint8_t g_lookup[12] =
  *
  * Description:
  *   Calculate the day of week (DOW) from they year month and day.  Based on
- *   an algorithm pubished in 1990 by Michael Keith and Tom Craver with some
+ *   an algorithm published in 1990 by Michael Keith and Tom Craver with some
  *   tweaks to handle months in the range 0-11.
  *
  * Input Parameters:
diff --git a/sched/pthread/pthread_initialize.c b/sched/pthread/pthread_initialize.c
index 8af1f83..6205426 100644
--- a/sched/pthread/pthread_initialize.c
+++ b/sched/pthread/pthread_initialize.c
@@ -72,7 +72,7 @@ void pthread_initialize(void)
  *
  * Input Parameters:
  *  sem  - The semaphore to lock or unlock
- *  intr - false: ignore EINTR errors when locking; true tread EINTR as
+ *  intr - false: ignore EINTR errors when locking; true treat EINTR as
  *         other errors by returning the errno value
  *
  * Returned Value:
diff --git a/sched/task/spawn.h b/sched/task/spawn.h
index 383473c..d1d6ba4 100644
--- a/sched/task/spawn.h
+++ b/sched/task/spawn.h
@@ -137,7 +137,7 @@ int spawn_execattrs(pid_t pid, FAR const posix_spawnattr_t *attr);
  *   file_actions - The attributes to use
  *
  * Returned Value:
- *   0 (OK) on successed; A negated errno value is returned on failure.
+ *   0 (OK) on success; A negated errno value is returned on failure.
  *
  ****************************************************************************/
 
diff --git a/sched/task/task_exit.c b/sched/task/task_exit.c
index b30a965..a66d01d 100644
--- a/sched/task/task_exit.c
+++ b/sched/task/task_exit.c
@@ -157,9 +157,9 @@ int nxtask_exit(void)
 #ifdef CONFIG_SMP
   /* NOTE:
    * During nxtask_terminate(), enter_critical_section() will be called
-   * to deallocate tcb. However, this would aquire g_cpu_irqlock if
+   * to deallocate tcb. However, this would acquire g_cpu_irqlock if
    * rtcb->irqcount = 0, event though we are in critical section.
-   * To prevent from aquiring, increment rtcb->irqcount here.
+   * To prevent from acquiring, increment rtcb->irqcount here.
    */
 
   rtcb->irqcount++;
diff --git a/tools/Config.mk b/tools/Config.mk
index ed62a6e..9e14738 100644
--- a/tools/Config.mk
+++ b/tools/Config.mk
@@ -400,7 +400,7 @@ endif
 
 # POSTBUILD -- Perform post build operations
 # Some architectures require the use of special tools and special handling
-# AFTER building the NuttX binary.  Make.defs files for thos architectures
+# AFTER building the NuttX binary.  Make.defs files for those architectures
 # should override the following define with the correct operations for
 # that platform
 
diff --git a/tools/incdir.c b/tools/incdir.c
index 4cef6ea..d2564e6 100644
--- a/tools/incdir.c
+++ b/tools/incdir.c
@@ -381,7 +381,7 @@ int main(int argc, char **argv, char **envp)
           convpath = (char *)malloc(bufsize);
           if (convpath == NULL)
             {
-              fprintf(stderr, "ERROR:  Faile to allocate buffer.\n");
+              fprintf(stderr, "ERROR:  Failed to allocate buffer.\n");
               exit(EXIT_FAILURE);
             }
 
diff --git a/tools/licensing/check.py b/tools/licensing/check.py
index fa09e1d..884d6fa 100755
--- a/tools/licensing/check.py
+++ b/tools/licensing/check.py
@@ -61,7 +61,7 @@ def header_authors(header):
     results = list(filter(lambda s: s != '', results)) # remove empty strings
     return results
 
-# Search for an author name in Apache's commiters/non-commiters
+# Search for an author name in Apache's committers/non-committers
 # database. It will return (apacheID,name) if there's a match or
 # None if not. apacheID might be None if there's no Apache ID
 # for author
@@ -162,7 +162,7 @@ def analyze(j):
 
         file_contents = get_file(commit['blob'])
 
-        # skip inaccesible blobs (probably lived in a submodule)
+        # skip inaccessible blobs (probably lived in a submodule)
 
 
         if (not file_contents):
diff --git a/tools/licensing/log2json.sh b/tools/licensing/log2json.sh
index 56a40ea..81a28b7 100755
--- a/tools/licensing/log2json.sh
+++ b/tools/licensing/log2json.sh
@@ -63,7 +63,7 @@ getblobs "$1" > $out2
 
 if [ "$(jq '. | length' $out1)" != "$(jq '. | length' $out2)" ]; then
 	# TODO: handle this case, we get more than one blob when the file is moved
-	# to/from submodule and it difficults parsing. Also, the blob we get
+	# to/from submodule and it difficulties parsing. Also, the blob we get
 	# for when they file is in the submodule is not usable since it is possibly
 	# from the pointed repo.
 	echo "Log and blob list differ in size, probably a file which lived in a submodule"
diff --git a/tools/macar-rcs.sh b/tools/macar-rcs.sh
index 8821f97..1efff39 100755
--- a/tools/macar-rcs.sh
+++ b/tools/macar-rcs.sh
@@ -27,7 +27,7 @@
 # NuttX developers are not happy with providing per-library dummy
 # objects either.
 #
-# The "has no symbols" warning can be supressed with
+# The "has no symbols" warning can be suppressed with
 # the -no_warning_for_no_symbols option if you are using
 # a recent enough version of ranlib/libtool.
 # (Unfortunately, ar doesn't have a way to pass the option to ranlib.)
diff --git a/tools/mkdeps.c b/tools/mkdeps.c
index 2b18d6d..bb19816 100644
--- a/tools/mkdeps.c
+++ b/tools/mkdeps.c
@@ -265,8 +265,8 @@ static void show_usage(const char *progname, const char *msg, int exitcode)
   fprintf(stderr, "  --obj-suffix <suffix>\n");
   fprintf(stderr, "    If an object path is provided, then the extension\n");
   fprintf(stderr, "    will be assumed to be .o.  This\n");
-  fprintf(stderr, "    default suffix can be overriden with this command\n");
-  fprintf(stderr, "    line option.\n");
+  fprintf(stderr, "    default suffix can be overridden with this\n");
+  fprintf(stderr, "    command line option.\n");
   fprintf(stderr, "  --winnative\n");
   fprintf(stderr, "    By default, a POSIX-style environment is assumed\n");
   fprintf(stderr, "    (e.g., Linux, Cygwin, etc.)  This option is\n");
@@ -434,12 +434,12 @@ static void parse_args(int argc, char **argv)
           /* This condition means "perform shquote for
            * g_cflags, but not g_cc or g_files".
            *
-           * It isn't safe to escape g_cc becuase, for some reasons,
+           * It isn't safe to escape g_cc because, for some reasons,
            * Makefile passes it as a single argument like:
            *
            *    $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS)
            *
-           * It isn't safe to escape g_files becuase
+           * It isn't safe to escape g_files because
            * do_dependency() uses them as bare filenames as well.
            * (In addition to passing them to system().)
            */
diff --git a/tools/parsecallstack.py b/tools/parsecallstack.py
index 5463af1..bbddce0 100755
--- a/tools/parsecallstack.py
+++ b/tools/parsecallstack.py
@@ -27,9 +27,9 @@ def parse_args():
         This file can get the call stack when you get the log with the
         register values from R0 to R15, together with the stack dump.\n
         Then you will get a file with name callstack.cmm, run this file
-        in Trace32, load the symbol accoring to the indication, the call
+        in Trace32, load the symbol according to the indication, the call
         stack will pop up.\n
-        Trace32 software is avaliable at: https://www.lauterbach.com
+        Trace32 software is available at: https://www.lauterbach.com
         """)
 
     parser.add_argument("-f", "--filename", action = "store",
diff --git a/wireless/bluetooth/bt_hcicore.c b/wireless/bluetooth/bt_hcicore.c
index 23a6111..04a06ab 100644
--- a/wireless/bluetooth/bt_hcicore.c
+++ b/wireless/bluetooth/bt_hcicore.c
@@ -1749,7 +1749,7 @@ int bt_hci_cmd_send(uint16_t opcode, FAR struct bt_buf_s *buf)
     {
       /* We manage the refcount the same for supplied and created
        * buffers so increment the supplied count so we can manage
-       * it as-if we crated it.
+       * it as-if we created it.
        */
 
       bt_buf_addref(buf);
diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c
index 8f6607e..680f346 100644
--- a/wireless/ieee802154/mac802154.c
+++ b/wireless/ieee802154/mac802154.c
@@ -627,7 +627,7 @@ void mac802154_updatebeacon(FAR struct ieee802154_privmac_s *priv)
           break;
         }
 
-      /* Get the next pending indirect transation */
+      /* Get the next pending indirect transaction */
 
       txdesc = (FAR struct ieee802154_txdesc_s *)
                  sq_next((FAR sq_entry_t *)txdesc);