From 244c56f9ba0c412b20d2bd9590ae6d07a799cbc9 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Wed, 24 Jul 2013 11:26:21 +0200 Subject: Bug 84 - Adding utf8 support to dlt-daemon, dlt-viewer. Modified patch, originally provided by Stefan Vacek. Signed-off-by: Alexander Wenzel --- include/dlt/dlt_user_macros.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/dlt/dlt_user_macros.h') diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h index 20f605d..c8551b1 100644 --- a/include/dlt/dlt_user_macros.h +++ b/include/dlt/dlt_user_macros.h @@ -201,6 +201,14 @@ extern DltContext CONTEXT; dlt_user_log_write_string(&log,TEXT); \ }) +/** + * Add utf8-encoded string parameter to the log messsage. + * @param TEXT UTF8-encoded string + */ +#define DLT_UTF8(TEXT) ({ \ + dlt_user_log_write_utf8_string(&log,TEXT); \ + }) + /** * Add boolean parameter to the log messsage. * @param BOOL_VAR Boolean value (mapped to uint8) -- cgit v1.2.1