This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 0045d8b54 uorb/listener: Fix typos
0045d8b54 is described below
commit 0045d8b546af28c43233e43d342b222d2ed512eb
Author: Matteo Golin <[email protected]>
AuthorDate: Sun Dec 21 13:11:14 2025 -0500
uorb/listener: Fix typos
Fix typo in comments and strings.
Signed-off-by: Matteo Golin <[email protected]>
---
system/uorb/listener.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/system/uorb/listener.c b/system/uorb/listener.c
index ebee53005..fe7909030 100644
--- a/system/uorb/listener.c
+++ b/system/uorb/listener.c
@@ -62,7 +62,7 @@ struct listen_object_s
SLIST_ENTRY(listen_object_s) node; /* Node of object info list */
struct orb_object object; /* Object id */
- orb_abstime timestamp; /* Time of lastest generation */
+ orb_abstime timestamp; /* Time of last generation */
unsigned long generation; /* Latest generation */
FAR FILE *file;
};
@@ -252,7 +252,7 @@ static int listener_add_object(FAR struct listen_list_s
*objlist,
* Name: listener_update
*
* Description:
- * Update object list, print imformation if given object has new data.
+ * Update object list, print information if given object has new data.
*
* Input Parameters:
* object Object to check state.
@@ -269,7 +269,7 @@ static int listener_update(FAR struct listen_list_s
*objlist,
FAR struct listen_object_s *tmp;
int ret;
- /* Check wether object already exist in old list */
+ /* Check whether object already exist in old list */
SLIST_FOREACH(tmp, objlist, node)
{
@@ -485,7 +485,7 @@ static int listener_generate_object_list(FAR struct
listen_list_s *objlist,
continue;
}
- /* Update object infomation to list. */
+ /* Update object information to list. */
if (listener_update(objlist, &object) < 0)
{
@@ -568,7 +568,7 @@ static int listener_record(FAR const struct orb_metadata
*meta, int fd,
* Name: listener_monitor
*
* Description:
- * Moniter objects by subscribe and print data.
+ * Monitor objects by subscribe and print data.
*
* Input Parameters:
* objlist List of objects to subscribe.
@@ -670,7 +670,7 @@ static void listener_monitor(FAR struct listen_list_s
*objlist,
}
}
- /* Loop poll and print recieved messages */
+ /* Loop poll and print received messages */
while ((!nb_msgs || nb_recv_msgs < nb_msgs) && !g_should_exit)
{
@@ -734,7 +734,7 @@ static void listener_monitor(FAR struct listen_list_s
*objlist,
}
orb_unsubscribe(fds[i].fd);
- uorbinfo_raw("Object name:%s%d, recieved:%d",
+ uorbinfo_raw("Object name:%s%d, received:%d",
tmp->object.meta->o_name, tmp->object.instance,
recv_msgs[i]);
}