summaryrefslogtreecommitdiff
path: root/common/src/tx_trace_object_register.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/tx_trace_object_register.c')
-rw-r--r--common/src/tx_trace_object_register.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/common/src/tx_trace_object_register.c b/common/src/tx_trace_object_register.c
index 741896a5..a0d0f494 100644
--- a/common/src/tx_trace_object_register.c
+++ b/common/src/tx_trace_object_register.c
@@ -9,6 +9,8 @@
* SPDX-License-Identifier: MIT
**************************************************************************/
+/* Portions of this file were generated with AI assistance. */
+
/**************************************************************************/
/**************************************************************************/
@@ -66,7 +68,7 @@
/* Application Code */
/* */
/**************************************************************************/
-VOID _tx_trace_object_register(UCHAR object_type, VOID *object_ptr, CHAR *object_name, ULONG parameter_1, ULONG parameter_2)
+VOID _tx_trace_object_register(UCHAR object_type, VOID *object_ptr, TX_NAME_CONST CHAR *object_name, ULONG parameter_1, ULONG parameter_2)
{
#ifdef TX_ENABLE_EVENT_TRACE
@@ -75,6 +77,7 @@ UINT i, entries;
UINT found, loop_break;
TX_THREAD *thread_ptr;
UCHAR *work_ptr;
+const UCHAR *name_ptr;
TX_TRACE_OBJECT_ENTRY *entry_ptr;
@@ -211,21 +214,21 @@ TX_TRACE_OBJECT_ENTRY *entry_ptr;
for (i = ((ULONG) 0); i < (((ULONG) TX_TRACE_OBJECT_REGISTRY_NAME)-((ULONG) 1)); i++)
{
- /* Setup work pointer to the object name character. */
- work_ptr = TX_CHAR_TO_UCHAR_POINTER_CONVERT(object_name);
- work_ptr = TX_UCHAR_POINTER_ADD(work_ptr, i);
+ /* Setup name pointer to the object name character. */
+ name_ptr = TX_CHAR_TO_UCHAR_POINTER_CONVERT(object_name);
+ name_ptr = TX_CONST_UCHAR_POINTER_ADD(name_ptr, i);
- /* Determine if object_name (work_ptr) is null. */
- if (work_ptr == TX_NULL)
+ /* Determine if object_name (name_ptr) is null. */
+ if (name_ptr == TX_NULL)
{
break;
}
/* Copy a character of the name. */
- entry_ptr -> tx_trace_object_entry_name[i] = (UCHAR) *work_ptr;
+ entry_ptr -> tx_trace_object_entry_name[i] = (UCHAR) *name_ptr;
/* Determine if we are at the end. */
- if (*work_ptr == ((UCHAR) 0))
+ if (*name_ptr == ((UCHAR) 0))
{
break;
}