summaryrefslogtreecommitdiff
path: root/src/lib/dlt_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r--src/lib/dlt_user.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index 9c9734f..318e3ef 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -2333,17 +2333,33 @@ DltReturnValue dlt_user_log_write_string(DltContextData *log, const char *text)
return dlt_user_log_write_string_utils(log, text, ASCII_STRING);
}
+DltReturnValue dlt_user_log_write_sized_string(DltContextData *log, const char *text, uint16_t length)
+{
+ return dlt_user_log_write_sized_string_utils(log, text, length, ASCII_STRING);
+}
+
DltReturnValue dlt_user_log_write_constant_string(DltContextData *log, const char *text)
{
/* Send parameter only in verbose mode */
return dlt_user.verbose_mode ? dlt_user_log_write_string(log, text) : DLT_RETURN_OK;
}
+DltReturnValue dlt_user_log_write_sized_constant_string(DltContextData *log, const char *text, uint16_t length)
+{
+ /* Send parameter only in verbose mode */
+ return dlt_user.verbose_mode ? dlt_user_log_write_sized_string(log, text, length) : DLT_RETURN_OK;
+}
+
DltReturnValue dlt_user_log_write_utf8_string(DltContextData *log, const char *text)
{
return dlt_user_log_write_string_utils(log, text, UTF8_STRING);
}
+DltReturnValue dlt_user_log_write_sized_utf8_string(DltContextData *log, const char *text, uint16_t length)
+{
+ return dlt_user_log_write_sized_string_utils(log, text, length, UTF8_STRING);
+}
+
DltReturnValue dlt_user_log_write_sized_string_utils(DltContextData *log, const char *text, uint16_t length, const enum StringType type)
{
uint16_t arg_size = 0;