From b283289986de95a877407baaf7baa9743980507f Mon Sep 17 00:00:00 2001 From: Juha Niskanen Date: Thu, 26 Aug 2021 15:36:43 +0300 Subject: [PATCH] apps: fix miscellaneous typos Signed-off-by: Juha Niskanen --- README.md | 2 +- examples/buttons/Makefile | 4 ++-- include/builtin/builtin.h | 4 ++-- include/nshlib/nshlib.h | 8 ++++---- netutils/netlib/netlib_ethaddrconv.c | 8 ++++---- nshlib/nsh_consolemain.c | 4 ++-- nshlib/nsh_init.c | 4 ++-- nshlib/nsh_usbconsole.c | 2 +- system/readline/readline.c | 4 ++-- testing/sensortest/sensortest.c | 6 +++--- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 202f1ff24..4414dce5d 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ during the make context build phase. To execute an application function: -`exec_builtin()` is defined in the `nuttx/include/apps/builtin/builtin.h`. +`exec_builtin()` is defined in the `apps/include/builtin/builtin.h`. ## NuttShell (NSH) Built-In Commands diff --git a/examples/buttons/Makefile b/examples/buttons/Makefile index a8bb58a39..d77ff3988 100644 --- a/examples/buttons/Makefile +++ b/examples/buttons/Makefile @@ -20,14 +20,14 @@ include $(APPDIR)/Make.defs -# LED driver test built-in application info +# Buttons test built-in application info PROGNAME = $(CONFIG_EXAMPLES_BUTTONS_PROGNAME) PRIORITY = $(CONFIG_EXAMPLES_BUTTONS_PRIORITY) STACKSIZE = $(CONFIG_EXAMPLES_BUTTONS_STACKSIZE) MODULE = $(CONFIG_EXAMPLES_BUTTONS) -# LED driver test +# Buttons test MAINSRC = buttons_main.c diff --git a/include/builtin/builtin.h b/include/builtin/builtin.h index dd8ff4b7d..e6662127f 100644 --- a/include/builtin/builtin.h +++ b/include/builtin/builtin.h @@ -66,7 +66,7 @@ extern "C" * Input Parameter: * filename - Name of the linked-in binary to be started. * argv - Argument list - * redirfile - If output if redirected, this parameter will be non-NULL + * redirfile - If output is redirected, this parameter will be non-NULL * and will provide the full path to the file. * oflags - If output is redirected, this parameter will provide the * open flags to use. This will support file replacement @@ -74,7 +74,7 @@ extern "C" * * Returned Value: * This is an end-user function, so it follows the normal convention: - * Returns the PID of the exec'ed module. On failure, it.returns + * Returns the PID of the exec'ed module. On failure, it returns * -1 (ERROR) and sets errno appropriately. * ****************************************************************************/ diff --git a/include/nshlib/nshlib.h b/include/nshlib/nshlib.h index f636e1cf7..894e736bd 100644 --- a/include/nshlib/nshlib.h +++ b/include/nshlib/nshlib.h @@ -86,7 +86,7 @@ extern "C" * * Description: * This interface is used to initialize the NuttShell (NSH). - * nsh_initialize() should be called one during application start-up prior + * nsh_initialize() should be called once during application start-up prior * to executing either nsh_consolemain() or nsh_telnetstart(). * * Input Parameters: @@ -103,9 +103,9 @@ void nsh_initialize(void); * Name: nsh_consolemain * * Description: - * This interfaces maybe to called or started with task_start to start a - * single an NSH instance that operates on stdin and stdout. This - * function does not return. + * This interface may be called or started with task_start to start a + * single NSH instance that operates on stdin and stdout. This function + * does not return. * * This function handles generic /dev/console character devices, or * special USB console devices. The USB console requires some special diff --git a/netutils/netlib/netlib_ethaddrconv.c b/netutils/netlib/netlib_ethaddrconv.c index 0a577cb93..5f42547d9 100644 --- a/netutils/netlib/netlib_ethaddrconv.c +++ b/netutils/netlib/netlib_ethaddrconv.c @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/netutils/netlib/netlib.c + * apps/netutils/netlib/netlib_ethaddrconv.c * Various uIP library functions. * * Copyright (C) 2007, 2009, 2011, 2016 Gregory Nutt. All rights reserved. @@ -78,9 +78,9 @@ bool netlib_ethaddrconv(FAR const char *hwstr, FAR uint8_t *hw) { ch = *hwstr++; if (++j > 3) - { - return false; - } + { + return false; + } if (ch == ':' || ch == 0) { diff --git a/nshlib/nsh_consolemain.c b/nshlib/nsh_consolemain.c index 63e655be8..5cf09d478 100644 --- a/nshlib/nsh_consolemain.c +++ b/nshlib/nsh_consolemain.c @@ -45,11 +45,11 @@ * Name: nsh_consolemain (Normal character device version) * * Description: - * This interfaces may be to called or started with task_start to start a + * This interface may be to called or started with task_start to start a * single an NSH instance that operates on stdin and stdout. This * function does not normally return (see below). * - * This version of nsh_consolmain handles generic /dev/console character + * This version of nsh_consolemain handles generic /dev/console character * devices (see nsh_usbconsole.c and usb_usbkeyboard for other versions * for special USB console devices). * diff --git a/nshlib/nsh_init.c b/nshlib/nsh_init.c index 88680d248..2cf68035e 100644 --- a/nshlib/nsh_init.c +++ b/nshlib/nsh_init.c @@ -52,8 +52,8 @@ static const struct extmatch_vtable_s g_nsh_extmatch = * Name: nsh_initialize * * Description: - * This nterfaces is used to initialize the NuttShell (NSH). - * nsh_initialize() should be called one during application start-up prior + * This interface is used to initialize the NuttShell (NSH). + * nsh_initialize() should be called once during application start-up prior * to executing either nsh_consolemain() or nsh_telnetstart(). * * Input Parameters: diff --git a/nshlib/nsh_usbconsole.c b/nshlib/nsh_usbconsole.c index c538f0de9..5ec2ac4c9 100644 --- a/nshlib/nsh_usbconsole.c +++ b/nshlib/nsh_usbconsole.c @@ -219,7 +219,7 @@ restart: * Name: nsh_consolemain (USB console version) * * Description: - * This interfaces maybe to called or started with task_start to start a + * This interface may be called or started with task_start to start a * single an NSH instance that operates on stdin and stdout. This * function does not return. * diff --git a/system/readline/readline.c b/system/readline/readline.c index 91e4631b3..47b345d54 100644 --- a/system/readline/readline.c +++ b/system/readline/readline.c @@ -101,8 +101,8 @@ static int readline_getc(FAR struct rl_common_s *vtbl) else if (nread < 0) { - /* EINTR is not really an error; it simply means that a signal we - * received while watiing for input. + /* EINTR is not really an error; it simply means that a signal was + * received while waiting for input. */ int errcode = errno; diff --git a/testing/sensortest/sensortest.c b/testing/sensortest/sensortest.c index e6aae9843..85f96f586 100644 --- a/testing/sensortest/sensortest.c +++ b/testing/sensortest/sensortest.c @@ -153,12 +153,12 @@ static void print_gps(const char *buffer, const char *name) static void usage(void) { printf("sensortest [arguments...] \n"); - printf("\t[-h ] sensotest commands help\n"); + printf("\t[-h ] sensortest commands help\n"); printf("\t[-i ] The output data period of sensor in us\n"); printf("\t default: 1000000\n"); printf("\t[-b ] The maximum report latency of sensor in us\n"); printf("\t default: 0\n"); - printf("\t[-n ] The specify number of output data\n"); + printf("\t[-n ] The number of output data\n"); printf("\t default: 0\n"); printf(" Commands:\n"); @@ -244,7 +244,7 @@ int main(int argc, FAR char *argv[]) if (!len) { - printf("The sensor node name:%s is invaild\n", name); + printf("The sensor node name:%s is invalid\n", name); usage(); ret = -EINVAL; goto name_err;