summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartin Willers <M.Willers@gmx.net>2021-05-31 07:45:48 +0200
committerGitHub <noreply@github.com>2021-05-31 14:45:48 +0900
commit3bb7eb24092ff771ccfd1119f8c1088f3f78f981 (patch)
tree58ef9ed71736b72f929eaa508c088184654e4701 /doc
parentd40ecef57050a48ca2abf9c307793d183972658e (diff)
downloadDLT-daemon-3bb7eb24092ff771ccfd1119f8c1088f3f78f981.tar.gz
Add missing string functions (#309)
Signed-off-by: Martin Willers <M.Willers@gmx.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/dlt_for_developers.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/dlt_for_developers.md b/doc/dlt_for_developers.md
index 1c4ef53..10351b9 100644
--- a/doc/dlt_for_developers.md
+++ b/doc/dlt_for_developers.md
@@ -665,9 +665,9 @@ std::string_view key = line.substr(0, 4);
std::string_view value = line.substr(6);
if (dlt_user_log_write_start_id(&ctx, &ctxdata, DLT_LOG_INFO, 42) > 0) {
- dlt_user_log_write_constant_string(&myctxdata, "key");
+ dlt_user_log_write_constant_utf8_string(&myctxdata, "key");
dlt_user_log_write_sized_utf8_string(&myctxdata, key.data(), key.size());
- dlt_user_log_write_constant_string(&myctxdata, "value");
+ dlt_user_log_write_constant_utf8_string(&myctxdata, "value");
dlt_user_log_write_sized_utf8_string(&myctxdata, value.data(), value.size());
dlt_user_log_write_finish(&myctxdata);
}